]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: rework power state handling
authorFelix Fietkau <nbd@openwrt.org>
Wed, 16 Nov 2011 12:08:41 +0000 (13:08 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Dec 2011 20:19:34 +0000 (15:19 -0500)
commitabe8f928b78f8357f727f1a9db5fe9cd79e42c6c
tree21935e2a32845647269a5c7848d22286c01e024b
parent19dcf4cfbf0d23b29a507953961e61520e3068d8
ath9k: rework power state handling

Turning off the radio when mac80211 tells the driver that it's idle is not
a good idea, as idle interfaces might still occasionally scan or send packets.
The only time the radio can be safely turned off is when drv_stop has been
called. In the mean time, use sc->ps_idle only to indicate network sleep vs
full sleep.
Move the LED GPIO changes out of the PCI suspend/resume path, the start/stop
functions already take care of that.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c
drivers/net/wireless/ath/ath9k/pci.c