aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-02-18 18:16:48 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-02-18 18:16:48 +0000
commitb1b8cf187094617e8987f03e52dfc3cf524fa1a2 (patch)
tree45a193de930ed7c4fb68d90f3f9a85f428948e89 /package/mac80211/patches
parent419b9d824a4db404847fb9fa2005718b741311da (diff)
downloadupstream-b1b8cf187094617e8987f03e52dfc3cf524fa1a2.tar.gz
upstream-b1b8cf187094617e8987f03e52dfc3cf524fa1a2.tar.bz2
upstream-b1b8cf187094617e8987f03e52dfc3cf524fa1a2.zip
ath9k: fix interrupt enable/disable issues
SVN-Revision: 25575
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r--package/mac80211/patches/550-ath9k_fix_interrupts.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/mac80211/patches/550-ath9k_fix_interrupts.patch b/package/mac80211/patches/550-ath9k_fix_interrupts.patch
new file mode 100644
index 0000000000..52e28c82cc
--- /dev/null
+++ b/package/mac80211/patches/550-ath9k_fix_interrupts.patch
@@ -0,0 +1,21 @@
+--- 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_
+ struct ath_common *common = ath9k_hw_common(ah);
+
+ if (!(ints & ATH9K_INT_GLOBAL))
+- ath9k_hw_enable_interrupts(ah);
++ ath9k_hw_disable_interrupts(ah);
+
+ ath_dbg(common, ATH_DBG_INTERRUPT, "0x%x => 0x%x\n", omask, ints);
+
+@@ -969,7 +969,8 @@ void ath9k_hw_set_interrupts(struct ath_
+ REG_CLR_BIT(ah, AR_IMR_S5, AR_IMR_S5_TIM_TIMER);
+ }
+
+- ath9k_hw_enable_interrupts(ah);
++ if (ints & ATH9K_INT_GLOBAL)
++ ath9k_hw_enable_interrupts(ah);
+
+ return;
+ }