summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/562-ath9k_fix_flush.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-11-18 11:27:19 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-11-18 11:27:19 +0000
commit0838e883f23dccd17ce752b698ac26c2a625e4e4 (patch)
treebe58d124bb1e584129c21e071c44c3be85eed09d /package/mac80211/patches/562-ath9k_fix_flush.patch
parentae90aa4efd1efff1a4f02e9993dc6bd6393a8dc2 (diff)
downloadmtk-20170518-0838e883f23dccd17ce752b698ac26c2a625e4e4.zip
mtk-20170518-0838e883f23dccd17ce752b698ac26c2a625e4e4.tar.gz
mtk-20170518-0838e883f23dccd17ce752b698ac26c2a625e4e4.tar.bz2
mac80211: update to wireless-testing 2011-11-15
SVN-Revision: 29240
Diffstat (limited to 'package/mac80211/patches/562-ath9k_fix_flush.patch')
-rw-r--r--package/mac80211/patches/562-ath9k_fix_flush.patch45
1 files changed, 0 insertions, 45 deletions
diff --git a/package/mac80211/patches/562-ath9k_fix_flush.patch b/package/mac80211/patches/562-ath9k_fix_flush.patch
deleted file mode 100644
index a5329ad..0000000
--- a/package/mac80211/patches/562-ath9k_fix_flush.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/main.c
-+++ b/drivers/net/wireless/ath/ath9k/main.c
-@@ -2268,9 +2268,6 @@ static void ath9k_flush(struct ieee80211
- return;
- }
-
-- if (drop)
-- timeout = 1;
--
- for (j = 0; j < timeout; j++) {
- bool npend = false;
-
-@@ -2288,21 +2285,22 @@ static void ath9k_flush(struct ieee80211
- }
-
- if (!npend)
-- goto out;
-+ break;
- }
-
-- ath9k_ps_wakeup(sc);
-- spin_lock_bh(&sc->sc_pcu_lock);
-- drain_txq = ath_drain_all_txq(sc, false);
-- spin_unlock_bh(&sc->sc_pcu_lock);
-+ if (drop) {
-+ ath9k_ps_wakeup(sc);
-+ spin_lock_bh(&sc->sc_pcu_lock);
-+ drain_txq = ath_drain_all_txq(sc, false);
-+ spin_unlock_bh(&sc->sc_pcu_lock);
-
-- if (!drain_txq)
-- ath_reset(sc, false);
-+ if (!drain_txq)
-+ ath_reset(sc, false);
-
-- ath9k_ps_restore(sc);
-- ieee80211_wake_queues(hw);
-+ ath9k_ps_restore(sc);
-+ ieee80211_wake_queues(hw);
-+ }
-
--out:
- ieee80211_queue_delayed_work(hw, &sc->tx_complete_work, 0);
- mutex_unlock(&sc->mutex);
- }