[PATCH 1/2] libertas: disable functionality when interface is down

Vasily Khoruzhick anarsoul at gmail.com
Mon Aug 1 13:38:39 EDT 2011


On Monday 01 August 2011 18:43:13 Daniel Drake wrote:

Hi, Daniel

> Modify the driver so that it does not function when the interface is
> down, in preparation for runtime power management.
> 
> No commands can be run while the interface is down, so the ndo_dev_stop
> routine now directly does all necessary work (including asking the device
> to disconnect from the network and disabling multicast functionality)
> directly.
> 
> power_save and power_restore hooks are added meaning that card drivers
> can take steps to turn the device off when the interface is down.

You mean completely off? And firmware needs to be reloaded after power up?

> The MAC address can now only be changed when all interfaces are down;
> the new address will be programmed when an interface gets brought up.
> This matches mac80211 behaviour.
> 
> Also, some small cleanups/simplifications were made in the surrounding
> device handling logic.

Regards
Vasily



More information about the libertas-dev mailing list