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>
This commit is contained in:
committed by
John W. Linville
parent
d0f21fe658
commit
280b9a9de1
@@ -978,9 +978,6 @@ static void ath9k_hw_init_interrupt_masks(struct ath_hw *ah,
|
|||||||
else
|
else
|
||||||
imr_reg |= AR_IMR_TXOK;
|
imr_reg |= AR_IMR_TXOK;
|
||||||
|
|
||||||
if (opmode == NL80211_IFTYPE_AP)
|
|
||||||
imr_reg |= AR_IMR_MIB;
|
|
||||||
|
|
||||||
ENABLE_REGWRITE_BUFFER(ah);
|
ENABLE_REGWRITE_BUFFER(ah);
|
||||||
|
|
||||||
REG_WRITE(ah, AR_IMR, imr_reg);
|
REG_WRITE(ah, AR_IMR, imr_reg);
|
||||||
|
Reference in New Issue
Block a user