]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: do not track cycle counter updates in powersave mode
authorFelix Fietkau <nbd@openwrt.org>
Tue, 12 Oct 2010 12:02:53 +0000 (14:02 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Oct 2010 19:48:44 +0000 (15:48 -0400)
commiteb20afee1312cb2f0a777a797cdcb7d2061bb5d6
tree7c3fb4a99f3a0f6154b7f52a20f21b3ea9e61597
parent0c5901e09a71889414e76c4032765ce72c95de62
ath9k: do not track cycle counter updates in powersave mode

While the chip is in powersave mode, the cycle counter updates do not
contain useful values. While the chip is in full sleep, the rx_clear
signal stays high, indicating a busy medium.
To ensure sane values, update cycle counters before going into
powersave, and clear them right after switching back to awake.

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