Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

A wireless management/Mgmt() function is used to implement miscellaneous functionality needed by the driver such as command that need response.

Files

Every Wireless Manager layer net_wifi_mgr.c

Prototype

Note that since every Wireless Manager’s Mgmt() function is accessed only by function pointer via the Wireless Manager’s API structure, it doesn’t need to be globally available and should therefore be declared as ‘static’.

Arguments

p_if

Pointer to the interface to wireless device to manage.

cmd

Management command to send.

The driver can define and implement its own management commands which need a response by calling the Wireless Manager api (p_mgr_api->Mgmt()) to send the management command and to receive the response.

Driver management command code '100' series reserved for driver.

p_buf_cmd

Pointer to variable that contains the data to send.

buf_cmd_len

Length of the command buffer.

p_buf_rtn

Pointer to variable that will receive the return data.

buf_rtn_len_max

Length of the return buffer.

p_err

Pointer to variable that will receive the return error code from this function.

Returned Values

None.

Required Configuration

None.

Notes/Warnings

Prior calling this function, the network lock must be acquired.

  • No labels