aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
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
commit1183ac2997ae9a20a92fd73627254288c4f3604e (patch)
tree8828d525ae505976d6eade1fa780009dbd0b9e30 /package/mac80211
parent71915880cdf4ecf10a5f302e81c446acbeffd836 (diff)
downloadupstream-1183ac2997ae9a20a92fd73627254288c4f3604e.tar.gz
upstream-1183ac2997ae9a20a92fd73627254288c4f3604e.tar.bz2
upstream-1183ac2997ae9a20a92fd73627254288c4f3604e.zip
ath9k: fix cabq depth accounting
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36977 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-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 1f6f95e12b..8a5fa6e502 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;
++ }
+ }
+ }
+