diff options
author | Rajkumar Manoharan <rmanohar@qca.qualcomm.com> | 2012-06-04 16:28:41 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-06 15:20:29 -0400 |
commit | c9ae6ab4c7d7aa29f9607ac69daafbc241fc123e (patch) | |
tree | d4c3f2070ed2cf59d53a4c1ad0f12744ffbcec07 /drivers/net/wireless/ath | |
parent | 0603143e47a34d0485a13fd7f46e56a97e687e34 (diff) | |
download | linux-3.10-c9ae6ab4c7d7aa29f9607ac69daafbc241fc123e.tar.gz linux-3.10-c9ae6ab4c7d7aa29f9607ac69daafbc241fc123e.tar.bz2 linux-3.10-c9ae6ab4c7d7aa29f9607ac69daafbc241fc123e.zip |
ath: do not update cycle counters with sleep mode
When the chip is waking up from sleep state, the cycle counters
might have incorrect readings. So it is better not to update those
readings with software counters.
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index d739c8e6a01..623b04f63fe 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -101,6 +101,7 @@ void ath9k_ps_wakeup(struct ath_softc *sc) spin_lock(&common->cc_lock); ath_hw_cycle_counters_update(common); memset(&common->cc_survey, 0, sizeof(common->cc_survey)); + memset(&common->cc_ani, 0, sizeof(common->cc_ani)); spin_unlock(&common->cc_lock); } |