ath10k-ct: depend on kmod-hwmon-core, it gets used when CONFIG_THERMAL is set
[openwrt/staging/dedeckeh.git] / package / kernel / mac80211 / patches / 322-mac80211-update-A-MPDU-flag-on-tx-dequeue.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Fri, 4 Nov 2016 10:13:34 +0100
3 Subject: [PATCH] mac80211: update A-MPDU flag on tx dequeue
4
5 The sequence number counter is used to derive the starting sequence
6 number. Since that counter is updated on tx dequeue, the A-MPDU flag
7 needs to be up to date at the tme of dequeue as well.
8
9 This patch prevents sending more A-MPDU frames after the session has
10 been terminated and also ensures that aggregation starts right after the
11 session has been established
12
13 Fixes: bb42f2d13ffc ("mac80211: Move reorder-sensitive TX handlers to after TXQ dequeue")
14 Signed-off-by: Felix Fietkau <nbd@nbd.name>
15 ---
16
17 --- a/net/mac80211/tx.c
18 +++ b/net/mac80211/tx.c
19 @@ -3462,6 +3462,11 @@ begin:
20 goto begin;
21 }
22
23 + if (test_bit(IEEE80211_TXQ_AMPDU, &txqi->flags))
24 + info->flags |= IEEE80211_TX_CTL_AMPDU;
25 + else
26 + info->flags &= ~IEEE80211_TX_CTL_AMPDU;
27 +
28 if (info->control.flags & IEEE80211_TX_CTRL_FAST_XMIT) {
29 struct sta_info *sta = container_of(txq->sta, struct sta_info,
30 sta);