You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
Stopping a Network Device
NetDev_Stop()
is called once each time an interface is stopped.
NetDev_Stop()
must perform the following operations:
1 Disable the receiver and transmitter.
2 Disable all local MAC interrupt sources.
3 Clear all local MAC interrupt status flags.
4 Power down the wireless device via network device’s BSP function pointer, NetDev_WiFi_Stop()
.
5 For wireless devices which can queued up packet to transmit, free all transmit buffer not yet transmitted by calling NetOS_IF_DeallocTaskPost()
with the address of the transmit buffer data areas.
6 Set perr to NET_DEV_ERR_NONE
if no error occurs. Otherwise, set perr
to an appropriate network device error code.