diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-12 16:08:02 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-15 15:48:44 -0400 |
commit | 431c74821432a6078d54f08de7cd561f8ef8f1ba (patch) | |
tree | b05cde83e9bc74cc5385758b089dea000d6c6356 /drivers/net/wireless/ath | |
parent | e49f913750bb8745085cc4c547912c330cd3eacb (diff) | |
download | linux-431c74821432a6078d54f08de7cd561f8ef8f1ba.tar.gz linux-431c74821432a6078d54f08de7cd561f8ef8f1ba.tar.bz2 linux-431c74821432a6078d54f08de7cd561f8ef8f1ba.zip |
ath9k_hw: fix PHY counter overflow handling in ANI v1
PHY counter overflows need to be checked for the old ANI version,
because of its use of interrupt based counter overflow reports when
the counters exceed the configured thresholds.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ani.c b/drivers/net/wireless/ath/ath9k/ani.c index 9297f574b71c..63ccb39cdcd4 100644 --- a/drivers/net/wireless/ath/ath9k/ani.c +++ b/drivers/net/wireless/ath/ath9k/ani.c @@ -664,7 +664,7 @@ static bool ath9k_hw_ani_read_counters(struct ath_hw *ah) phyCnt1 = REG_READ(ah, AR_PHY_ERR_1); phyCnt2 = REG_READ(ah, AR_PHY_ERR_2); - if (use_new_ani(ah) && (phyCnt1 < ofdm_base || phyCnt2 < cck_base)) { + if (!use_new_ani(ah) && (phyCnt1 < ofdm_base || phyCnt2 < cck_base)) { if (phyCnt1 < ofdm_base) { ath_print(common, ATH_DBG_ANI, "phyCnt1 0x%x, resetting " |