aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/mac.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/mac.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c
index c75d40fb86f1..5efc869d65ff 100644
--- a/drivers/net/wireless/ath/ath9k/mac.c
+++ b/drivers/net/wireless/ath/ath9k/mac.c
@@ -891,7 +891,7 @@ void ath9k_hw_set_interrupts(struct ath_hw *ah, enum ath9k_int ints)
891 struct ath_common *common = ath9k_hw_common(ah); 891 struct ath_common *common = ath9k_hw_common(ah);
892 892
893 if (!(ints & ATH9K_INT_GLOBAL)) 893 if (!(ints & ATH9K_INT_GLOBAL))
894 ath9k_hw_enable_interrupts(ah); 894 ath9k_hw_disable_interrupts(ah);
895 895
896 ath_dbg(common, ATH_DBG_INTERRUPT, "0x%x => 0x%x\n", omask, ints); 896 ath_dbg(common, ATH_DBG_INTERRUPT, "0x%x => 0x%x\n", omask, ints);
897 897
@@ -969,7 +969,8 @@ void ath9k_hw_set_interrupts(struct ath_hw *ah, enum ath9k_int ints)
969 REG_CLR_BIT(ah, AR_IMR_S5, AR_IMR_S5_TIM_TIMER); 969 REG_CLR_BIT(ah, AR_IMR_S5, AR_IMR_S5_TIM_TIMER);
970 } 970 }
971 971
972 ath9k_hw_enable_interrupts(ah); 972 if (ints & ATH9K_INT_GLOBAL)
973 ath9k_hw_enable_interrupts(ah);
973 974
974 return; 975 return;
975} 976}