diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-03 03:27:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-03 03:27:20 +0000 |
commit | f24b8561d492374129465492f6b35a99d5e2016f (patch) | |
tree | 239bfc6beddb6d52b28258ed8c41e6425b0d8bf0 /package/mac80211/patches/584-ath9k_fix_reset.patch | |
parent | 7fce085a9765cf41947515caead3100f7fab65e2 (diff) | |
download | upstream-f24b8561d492374129465492f6b35a99d5e2016f.tar.gz upstream-f24b8561d492374129465492f6b35a99d5e2016f.tar.bz2 upstream-f24b8561d492374129465492f6b35a99d5e2016f.zip |
ath9k: fix some hw reset issues
SVN-Revision: 28151
Diffstat (limited to 'package/mac80211/patches/584-ath9k_fix_reset.patch')
-rw-r--r-- | package/mac80211/patches/584-ath9k_fix_reset.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/mac80211/patches/584-ath9k_fix_reset.patch b/package/mac80211/patches/584-ath9k_fix_reset.patch new file mode 100644 index 0000000000..2fc5713835 --- /dev/null +++ b/package/mac80211/patches/584-ath9k_fix_reset.patch @@ -0,0 +1,30 @@ +--- a/drivers/net/wireless/ath/ath9k/main.c ++++ b/drivers/net/wireless/ath/ath9k/main.c +@@ -667,15 +667,15 @@ void ath9k_tasklet(unsigned long data) + u32 status = sc->intrstatus; + u32 rxmask; + ++ ath9k_ps_wakeup(sc); ++ spin_lock(&sc->sc_pcu_lock); ++ + if ((status & ATH9K_INT_FATAL) || + (status & ATH9K_INT_BB_WATCHDOG)) { + ieee80211_queue_work(sc->hw, &sc->hw_reset_work); +- return; ++ goto out; + } + +- ath9k_ps_wakeup(sc); +- spin_lock(&sc->sc_pcu_lock); +- + /* + * Only run the baseband hang check if beacons stop working in AP or + * IBSS mode, because it has a high false positive rate. For station +@@ -723,6 +723,7 @@ void ath9k_tasklet(unsigned long data) + if (status & ATH9K_INT_GENTIMER) + ath_gen_timer_isr(sc->sc_ah); + ++out: + /* re-enable hardware interrupt */ + ath9k_hw_enable_interrupts(ah); + |