ath9k: always issue a full hw reset after waking up from full-sleep mode
authorFelix Fietkau <nbd@openwrt.org>
Wed, 16 Nov 2011 12:08:40 +0000 (13:08 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Dec 2011 20:14:03 +0000 (15:14 -0500)
commitc8e8868e3bf2ee0b6e606ce43af023b5f6edc954
tree178f42ba7d28b293c97779e1602e2fe08e59efab
parent4e79fada02df6819106a35ed6111ac47500541b2
ath9k: always issue a full hw reset after waking up from full-sleep mode

After waking up from full sleep, registers are accessible, but rx/tx
typically fails. A fast channel change will not recover from this, so
ensure that a full-sleep -> wake transition is always followed by a full
reset.

The reason why this hasn't created any serious problems yet is that it's
hidden by the (wrong) behavior of enabling/disabling the radio when the
wiphy idle state changes.

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/xmit.c