b67030d135baa1078125bb26fb5f22f05ecafa47
[openwrt/staging/wigyori.git] / package / kernel / mac80211 / patches / subsys / 330-mac80211-allow-bigger-A-MSDU-sizes-in-VHT-even-if-HT.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Wed, 16 Sep 2020 18:43:46 +0200
3 Subject: [PATCH] mac80211: allow bigger A-MSDU sizes in VHT, even if HT is
4 limited
5
6 Some APs (e.g. Asus RT-AC88U) have been observed to report an HT MSDU size
7 limit of 3839 and a VHT limit of 7991. These APs can handle bigger frames
8 than 3839 bytes just fine, so we should remove the VHT limit based on the
9 HT capabilities. This improves tx throughput.
10
11 Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 ---
13
14 --- a/net/mac80211/vht.c
15 +++ b/net/mac80211/vht.c
16 @@ -315,10 +315,6 @@ ieee80211_vht_cap_ie_to_sta_vht_cap(stru
17
18 sta->sta.bandwidth = ieee80211_sta_cur_vht_bw(sta);
19
20 - /* If HT IE reported 3839 bytes only, stay with that size. */
21 - if (sta->sta.max_amsdu_len == IEEE80211_MAX_MPDU_LEN_HT_3839)
22 - return;
23 -
24 switch (vht_cap->cap & IEEE80211_VHT_CAP_MAX_MPDU_MASK) {
25 case IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454:
26 sta->sta.max_amsdu_len = IEEE80211_MAX_MPDU_LEN_VHT_11454;