ath9k: fix interrupt enable/disable issues
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 550-ath9k_fix_interrupts.patch
1 --- a/drivers/net/wireless/ath/ath9k/mac.c
2 +++ b/drivers/net/wireless/ath/ath9k/mac.c
3 @@ -891,7 +891,7 @@ void ath9k_hw_set_interrupts(struct ath_
4 struct ath_common *common = ath9k_hw_common(ah);
5
6 if (!(ints & ATH9K_INT_GLOBAL))
7 - ath9k_hw_enable_interrupts(ah);
8 + ath9k_hw_disable_interrupts(ah);
9
10 ath_dbg(common, ATH_DBG_INTERRUPT, "0x%x => 0x%x\n", omask, ints);
11
12 @@ -969,7 +969,8 @@ void ath9k_hw_set_interrupts(struct ath_
13 REG_CLR_BIT(ah, AR_IMR_S5, AR_IMR_S5_TIM_TIMER);
14 }
15
16 - ath9k_hw_enable_interrupts(ah);
17 + if (ints & ATH9K_INT_GLOBAL)
18 + ath9k_hw_enable_interrupts(ah);
19
20 return;
21 }