summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-11-04 10:31:27 +0100
committerFelix Fietkau <nbd@nbd.name>2016-11-04 10:31:27 +0100
commit5c11a4b3114887711cf2a27b2d7debe0c8824954 (patch)
tree904a3e3b25087bbdf0521bd4e7233e7df5a17239
parent3db1a5c8fa33be53c0b4dae9c522df310ae91f0f (diff)
downloadopenwrt-5c11a4b3114887711cf2a27b2d7debe0c8824954.tar.gz
openwrt-5c11a4b3114887711cf2a27b2d7debe0c8824954.tar.bz2
openwrt-5c11a4b3114887711cf2a27b2d7debe0c8824954.zip
mac80211: fix a tx A-MPDU aggregation issue
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--package/kernel/mac80211/patches/322-mac80211-update-A-MPDU-flag-on-tx-dequeue.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/322-mac80211-update-A-MPDU-flag-on-tx-dequeue.patch b/package/kernel/mac80211/patches/322-mac80211-update-A-MPDU-flag-on-tx-dequeue.patch
new file mode 100644
index 0000000000..1898d23584
--- /dev/null
+++ b/package/kernel/mac80211/patches/322-mac80211-update-A-MPDU-flag-on-tx-dequeue.patch
@@ -0,0 +1,30 @@
+From: Felix Fietkau <nbd@nbd.name>
+Date: Fri, 4 Nov 2016 10:13:34 +0100
+Subject: [PATCH] mac80211: update A-MPDU flag on tx dequeue
+
+The sequence number counter is used to derive the starting sequence
+number. Since that counter is updated on tx dequeue, the A-MPDU flag
+needs to be up to date at the tme of dequeue as well.
+
+This patch prevents sending more A-MPDU frames after the session has
+been terminated and also ensures that aggregation starts right after the
+session has been established
+
+Fixes: bb42f2d13ffc ("mac80211: Move reorder-sensitive TX handlers to after TXQ dequeue")
+Signed-off-by: Felix Fietkau <nbd@nbd.name>
+---
+
+--- a/net/mac80211/tx.c
++++ b/net/mac80211/tx.c
+@@ -3462,6 +3462,11 @@ begin:
+ goto begin;
+ }
+
++ if (test_bit(IEEE80211_TXQ_AMPDU, &txqi->flags))
++ info->flags |= IEEE80211_TX_CTL_AMPDU;
++ else
++ info->flags &= ~IEEE80211_TX_CTL_AMPDU;
++
+ if (info->control.flags & IEEE80211_TX_CTRL_FAST_XMIT) {
+ struct sta_info *sta = container_of(txq->sta, struct sta_info,
+ sta);