aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-08-27 11:00:03 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-09-05 14:53:30 -0400
commit280b9a9de19b0819dcf1ab38c88e37bb82dbea0c (patch)
treebbb87726318797a67142c00f79d277406db034c2
parentd0f21fe6585dda550b279ceccd2609111d7f1baa (diff)
ath9k_hw: do not enable the MIB interrupt in the interrupt mask register
The interrupt is no longer handling it. While it shouldn't fire (wraparound is highly unlikely), the consequences would be fatal (interrupt storm). Disable the interrupt to prevent that from happening. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 60b6a9daff7e..d95474ecb6c9 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -978,9 +978,6 @@ static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah,
978 else 978 else
979 imr_reg |= AR_IMR_TXOK; 979 imr_reg |= AR_IMR_TXOK;
980 980
981 if (opmode == NL80211_IFTYPE_AP)
982 imr_reg |= AR_IMR_MIB;
983
984 ENABLE_REGWRITE_BUFFER(ah); 981 ENABLE_REGWRITE_BUFFER(ah);
985 982
986 REG_WRITE(ah, AR_IMR, imr_reg); 983 REG_WRITE(ah, AR_IMR, imr_reg);