...
Every wireless device driver’s net_dev.c
Prototype
...
Code Block |
---|
static CPU_INT32U NetDev_MgmtExecuteCmd (NET_IF *p_if,
NET_IF_WIFI_CMD cmd,
NET_WIFI_MGR_CTX *p_ctx,
void *p_cmd_data,
CPU_INT16U cmd_data_len,
CPU_INT08U *p_buf_rtn,
CPU_INT08U 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
’.
...
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.