aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-16 22:22:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-16 22:22:34 +0000
commit75a6d71c827abbde3ce2f24dad7dc4686f365ed2 (patch)
tree1da1ed689b12448652c924c5bebf0baa83355df1
parent902c08b7e61c2dca9fab99a361fe6f9ac74633bb (diff)
downloadupstream-75a6d71c827abbde3ce2f24dad7dc4686f365ed2.tar.gz
upstream-75a6d71c827abbde3ce2f24dad7dc4686f365ed2.tar.bz2
upstream-75a6d71c827abbde3ce2f24dad7dc4686f365ed2.zip
ath9k: remove the queue wake optimization, it may be unreliable in some cases
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30959 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/mac80211/patches/565-ath9k_optimize_queue_wake.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/package/mac80211/patches/565-ath9k_optimize_queue_wake.patch b/package/mac80211/patches/565-ath9k_optimize_queue_wake.patch
deleted file mode 100644
index e04ffaafcb..0000000000
--- a/package/mac80211/patches/565-ath9k_optimize_queue_wake.patch
+++ /dev/null
@@ -1,39 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/xmit.c
-+++ b/drivers/net/wireless/ath/ath9k/xmit.c
-@@ -121,13 +121,24 @@ static void ath_txq_unlock_complete(stru
- {
- struct sk_buff_head q;
- struct sk_buff *skb;
-+ int qnum = txq->mac80211_qnum;
-+ bool wake = false;
-
- __skb_queue_head_init(&q);
- skb_queue_splice_init(&txq->complete_q, &q);
-+
-+ if (txq->stopped && txq->pending_frames < ATH_MAX_QDEPTH) {
-+ txq->stopped = false;
-+ wake = true;
-+ }
-+
- spin_unlock_bh(&txq->axq_lock);
-
- while ((skb = __skb_dequeue(&q)))
- ieee80211_tx_status(sc->hw, skb);
-+
-+ if (wake)
-+ ieee80211_wake_queue(sc->hw, qnum);
- }
-
- static void ath_tx_queue_tid(struct ath_txq *txq, struct ath_atx_tid *tid)
-@@ -2037,11 +2048,6 @@ static void ath_tx_complete(struct ath_s
- if (txq == sc->tx.txq_map[q]) {
- if (WARN_ON(--txq->pending_frames < 0))
- txq->pending_frames = 0;
--
-- if (txq->stopped && txq->pending_frames < ATH_MAX_QDEPTH) {
-- ieee80211_wake_queue(sc->hw, q);
-- txq->stopped = false;
-- }
- }
-
- __skb_queue_tail(&txq->complete_q, skb);