| commit | fbb078fcd2fa83646ad9504d8e4c54a67b8729ae | [log] [tgz] |
|---|---|---|
| author | Felix Fietkau <nbd@openwrt.org> | Wed Nov 03 01:36:51 2010 +0100 |
| committer | John W. Linville <linville@tuxdriver.com> | Mon Nov 08 16:53:47 2010 -0500 |
| tree | 3273b3cfdd9d45d63448fbbde1a4df08201ae700 | |
| parent | 3cc25e510dfc36dc62ee0aa87344b36ed7c1742a [diff] |
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>