You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 5
Next »
How to Demultiplex Management Frames
NetDev_MgmtDemux()
is called by μC/TCP-IP’s Receive task after the device’s receive function has returned a management frame. NetDev_MgmtDemux()
requires that the device driver analyses management frames received and it must performs all necessary operations. It performs the following actions:
1 Determine if the management frame is a response of a previous management command sent or if it is a management frame which require the driver to update driver’s state.
2 If the management frame is a response, the device’s Wireless Manager must be signaled using the function pointer NetWiFiMgr_Signal()
. No other steps are required in that case.
3 If the management frame is a state update, the driver should update device’s data or interface’s link state or perform transmit complete operations.
4 NetDev_MgmtDemux()
sets p_err
to NET_DEV_ERR_NONE
and return from the demultiplex function.