summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-06-20 13:10:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-06-20 13:10:31 +0000
commitb954cfdf6a67b3effdaac2c58494e68aad4f0e0a (patch)
tree23854ef8a848653696a30e1e76960f642dd5dc24 /package
parent7cbbd24d64efa695afbd37a7732314e8b2bf4253 (diff)
downloadmtk-20170518-b954cfdf6a67b3effdaac2c58494e68aad4f0e0a.zip
mtk-20170518-b954cfdf6a67b3effdaac2c58494e68aad4f0e0a.tar.gz
mtk-20170518-b954cfdf6a67b3effdaac2c58494e68aad4f0e0a.tar.bz2
ath9k: fix cabq depth accounting
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 36977
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/300-pending_work.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch
index 1f6f95e..8a5fa6e 100644
--- a/package/mac80211/patches/300-pending_work.patch
+++ b/package/mac80211/patches/300-pending_work.patch
@@ -281,3 +281,22 @@
*/
struct sta_ampdu_mlme {
struct mutex mtx;
+--- a/drivers/net/wireless/ath/ath9k/xmit.c
++++ b/drivers/net/wireless/ath/ath9k/xmit.c
+@@ -1778,9 +1778,13 @@ static void ath_tx_txqaddbuf(struct ath_
+ }
+
+ if (!internal) {
+- txq->axq_depth++;
+- if (bf_is_ampdu_not_probing(bf))
+- txq->axq_ampdu_depth++;
++ while (bf) {
++ txq->axq_depth++;
++ if (bf_is_ampdu_not_probing(bf))
++ txq->axq_ampdu_depth++;
++
++ bf = bf->bf_lastbf->bf_next;
++ }
+ }
+ }
+