NetDev_MgmtProcessResp()

A device’s process management response function is used to analyse the response, set the state machine context of the Wireless Manager and fill the return buffer.

Files

Every wireless device driver’s net_dev.c

Prototype

          static  CPU_INT32U  NetDev_MgmtProcessResp  (NET_IF           *p_if,
                                                       NET_IF_WIFI_CMD   cmd,
                                                       NET_WIFI_MGR_CTX *p_ctx,
                                                       CPU_INT08U       *p_buf_rxd,
                                                       CPU_INT16U        buf_rxd_len,
                                                       CPU_INT08U       *p_buf_rtn,
                                                       CPU_INT16U        buf_rtn_len_max,
                                                       NET_ERR          *p_err);

Note that since every device driver’s MgmtDemux() function is accessed only by function pointer via the device driver’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 handle network device I/O operations.

cmd

Management command to execute:

NET_IF_WIFI_CMD_SCAN
NET_IF_WIFI_CMD_JOIN
NET_IF_WIFI_CMD_LEAVE
NET_IF_IO_CTRL_LINK_STATE_GET
NET_IF_IO_CTRL_LINK_STATE_GET_INFO
NET_IF_IO_CTRL_LINK_STATE_UPDATE

Others management commands defined by the driver.

p_ctx

Pointer to the Wireless Manager context.

p_buf_rxd

Pointer to a network buffer that contains the command response

cmd_data_len

Length of the data response.

p_buf_rtn

Pointer to buffer that will receive return data.

buf_rtn_len_max

Return maximum data length.

p_err

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

Returned Value

None.

Required Configuration

None.

Notes / Warnings

None.