ath9k: use a timer to put hardware into full sleep
authorFelix Fietkau <nbd@openwrt.org>
Mon, 11 Nov 2013 21:23:33 +0000 (22:23 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Dec 2013 19:24:59 +0000 (14:24 -0500)
commitbf3dac5a6fcf33a80c99e7b7406f8e5af99e2a70
tree79b2b90a70f3c06eaf5bac8f78aa232da284a9a0
parentf28c785f37a977cfd5879f4bfec99838053373f8
ath9k: use a timer to put hardware into full sleep

When operating in client mode, the short period of time between scanning
and associating is often enough to put the hardware through several
FULL-SLEEP <-> AWAKE transitions, each wakeup requiring a reset to fully
recover the hardware.
This is completely unnecessary and can easily be avoided by deferring
the switch to full sleep.

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