Skip to contentSkip to conversation

ath5k: mask out unneeded interrupts

PATCH In review [email protected] 1 participant 1 message Jul 30, 2008 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

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.

Cc Nick Kossifidis <[email protected]>
Cc Luis R. Rodriguez <[email protected]>
Cc "Bob Copeland" <[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
diff -puN drivers/net/wireless/ath5k/base.c~ath5k-mask-out-unneeded-interrupts drivers/net/wireless/ath5k/base.c
@@ -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;

_