ath5k: mask out unneeded interrupts
PATCH 1/4 ath5k: mask out unneeded interrupts
From: Jiri Slaby <[email protected]>
Mask out previously demanded interrupt flags because we set new ones. Don't allow mixing them after switch from sta to ibss and vice versa.
Signed-off-by Jiri Slaby <[email protected]>
Cc Nick Kossifidis <[email protected]>
Cc Luis R. Rodriguez <[email protected]>
Cc "Bob Copeland" <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/net/wireless/ath5k/base.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/wireless/ath5k/base.c renamed from drivers/net/wireless/ath5k/base.c~ath5k-mask-out-unneeded-interrupts +1 -0
@@ -2170,6 +2170,7 @@ ath5k_beacon_config(struct ath5k_softc *ath5k_hw_set_intr (ah,0 ); sc->bmisscount =0 ; + sc->imask &= ~(AR5K_INT_BMISS |AR5K_INT_SWBA );if (sc->opmode ==IEEE80211_IF_TYPE_STA ) { sc->imask |=AR5K_INT_BMISS ;
_