sunxi: improve A20 Lime2 upload speed
[openwrt/staging/lynxis.git] / package / kernel / mac80211 / patches / 322-mac80211-don-t-handle-filtered-frames-within-a-BA-se.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Wed, 22 Feb 2017 16:13:17 +0100
3 Subject: [PATCH] mac80211: don't handle filtered frames within a BA session
4
5 When running a BA session, the driver (or the hardware) already takes
6 care of retransmitting failed frames, since it has to keep the receiver
7 reorder window in sync.
8
9 Adding another layer of retransmit around that does not improve
10 anything. In fact, it can only lead to some strong reordering with huge
11 latency.
12
13 Cc: stable@vger.kernel.org
14 Signed-off-by: Felix Fietkau <nbd@nbd.name>
15 ---
16
17 --- a/net/mac80211/status.c
18 +++ b/net/mac80211/status.c
19 @@ -51,7 +51,8 @@ static void ieee80211_handle_filtered_fr
20 struct ieee80211_hdr *hdr = (void *)skb->data;
21 int ac;
22
23 - if (info->flags & IEEE80211_TX_CTL_NO_PS_BUFFER) {
24 + if (info->flags & (IEEE80211_TX_CTL_NO_PS_BUFFER |
25 + IEEE80211_TX_CTL_AMPDU)) {
26 ieee80211_free_txskb(&local->hw, skb);
27 return;
28 }