...
Anchor
Files
Anchor
net_dev.c
Prototype
...
HTML Table | summary | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
class | Code_Listing | ||||||||||||||||||
Table Row (tr) | |||||||||||||||||||
Table Cell (td) | |||||||||||||||||||
| |||||||||||||||||||
Anchor | 1153307 | 1153307 | static CPU_INT32U NetDev_MgmtExecuteCmd (NET_IF *p_if,|||||||||||||||||
Anchor | 1153308 | 1153308 | |||||||||||||||||
Code Block | |||||||||||||||||||
static CPU_INT32U NetDev_MgmtExecuteCmd (NET_IF *p_if, NET_IF_WIFI_CMDcmd, Anchor | | 1153309 | 1153309 | ||||||||||||||||
Anchor | 1153310 | 1153310 | void|||||||||||||||||
Anchor | 1153311 | 1153311 | CPU_INT16U cmd_data_len,|||||||||||||||||
Anchor | 1153312 | 1153312 | CPU_INT08U *p_buf_rtn,|||||||||||||||||
Anchor | 1153313 | 1153313 | CPU_INT08U|||||||||||||||||
Anchor | 1153314 | 1153314 | NET_ERR|||||||||||||||||
Table Row (tr) |
...
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’.static
’.Arguments
Anchor
p_if
Pointer to the interface to handle network device I/O operations.
Anchor
cmd
anchorManagement 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
1136956 Anchor
Pointer to the Wireless Manager context.
Anchor
p_cmd_data
Pointer to a buffer that contains data to be used by the driver to execute the command.
Anchor
cmd_data_len
Command data length.
Anchor
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
Anchor
Required Configuration
Anchor
Notes / Warnings
...
The state machine context is used by the Wireless Manager to know what it MUST must do after the call such as waiting for a management response.