diff options
author | Felix Fietkau | 2010-11-03 01:36:51 +0100 |
---|---|---|
committer | John W. Linville | 2010-11-08 22:53:47 +0100 |
commit | fbb078fcd2fa83646ad9504d8e4c54a67b8729ae (patch) | |
tree | 3273b3cfdd9d45d63448fbbde1a4df08201ae700 /usr | |
parent | cfg80211: fix a crash in dev lookup on dump commands (diff) | |
download | kernel-qcow2-linux-fbb078fcd2fa83646ad9504d8e4c54a67b8729ae.tar.gz kernel-qcow2-linux-fbb078fcd2fa83646ad9504d8e4c54a67b8729ae.tar.xz kernel-qcow2-linux-fbb078fcd2fa83646ad9504d8e4c54a67b8729ae.zip |
ath9k: check old power mode before clearing cycle counters
ath9k_ps_wakeup() clears the cycle counters after waking up the
hardware using ath9k_hw_setpower, however if power save is disabled,
then the counters will contain useful data, which then gets discarded.
Fix this by checking the old power mode before discarding any data.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions