NetWiFiMgr_Mgmt()

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



          static void NetWiFiMgr_Mgmt (NET_IF           p_if,
                                       NET_IF_WIFI_CMD  cmd,
                                       CPU_INT08U      *p_buf_cmd,
                                       CPU_INT16U       buf_cmd_len,
                                       CPU_INT08U      *p_buf_rtn,
                                       CPU_INT16U       buf_rtn_len_max,
                                       NET_ERR         *p_err);


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.