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 6 Next »

A device’s execute management command function is used to implement miscellaneous wireless management functionality such as scanning for available wireless network.

Files

Every wireless device driver’s net_dev.c

Prototype

 

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_cmd_data

Pointer to a buffer that contains data to be used by the driver to execute the command.

cmd_data_len

Command data length.

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

The state machine context is used by the Wireless Manager to know what it MUST do after the call such as waiting for a management response.

  • No labels