developer | cb3d68a | 2022-03-14 09:48:11 +0800 | [diff] [blame] | 1 | From ca21bb98773235bc7a50f7bcc1ed990f158f7dbd Mon Sep 17 00:00:00 2001 |
| 2 | From: Peter Chiu <chui-hao.chiu@mediatek.com> |
| 3 | Date: Mon, 14 Mar 2022 12:28:13 +0800 |
| 4 | Subject: [PATCH] mac80211: allow non-standard VHT MCS-10/11 |
| 5 | |
| 6 | Change-Id: I75f6b33f1f0ea17faff63ba066e6896ac4bc849a |
| 7 | --- |
| 8 | ...211-allow-non-standard-VHT-MCS-10-11.patch | 41 +++++++++++++++++++ |
| 9 | 1 file changed, 41 insertions(+) |
| 10 | create mode 100644 package/kernel/mac80211/patches/subsys/323-mac80211-allow-non-standard-VHT-MCS-10-11.patch |
| 11 | |
| 12 | diff --git a/package/kernel/mac80211/patches/subsys/323-mac80211-allow-non-standard-VHT-MCS-10-11.patch b/package/kernel/mac80211/patches/subsys/323-mac80211-allow-non-standard-VHT-MCS-10-11.patch |
| 13 | new file mode 100644 |
| 14 | index 00000000..d9050c1d |
| 15 | --- /dev/null |
| 16 | +++ b/package/kernel/mac80211/patches/subsys/323-mac80211-allow-non-standard-VHT-MCS-10-11.patch |
| 17 | @@ -0,0 +1,41 @@ |
| 18 | +From 04be6d337d37400ad5b3d5f27ca87645ee5a18a3 Mon Sep 17 00:00:00 2001 |
| 19 | +From: Ping-Ke Shih <pkshih@realtek.com> |
| 20 | +Date: Mon, 3 Jan 2022 09:36:21 +0800 |
| 21 | +Subject: [PATCH] mac80211: allow non-standard VHT MCS-10/11 |
| 22 | + |
| 23 | +Some AP can possibly try non-standard VHT rate and mac80211 warns and drops |
| 24 | +packets, and leads low TCP throughput. |
| 25 | + |
| 26 | + Rate marked as a VHT rate but data is invalid: MCS: 10, NSS: 2 |
| 27 | + WARNING: CPU: 1 PID: 7817 at net/mac80211/rx.c:4856 ieee80211_rx_list+0x223/0x2f0 [mac8021 |
| 28 | + |
| 29 | +Since commit c27aa56a72b8 ("cfg80211: add VHT rate entries for MCS-10 and MCS-11") |
| 30 | +has added, mac80211 adds this support as well. |
| 31 | + |
| 32 | +After this patch, throughput is good and iw can get the bitrate: |
| 33 | + rx bitrate: 975.1 MBit/s VHT-MCS 10 80MHz short GI VHT-NSS 2 |
| 34 | +or |
| 35 | + rx bitrate: 1083.3 MBit/s VHT-MCS 11 80MHz short GI VHT-NSS 2 |
| 36 | + |
| 37 | +Buglink: https://bugzilla.suse.com/show_bug.cgi?id=1192891 |
| 38 | +Reported-by: Goldwyn Rodrigues <rgoldwyn@suse.com> |
| 39 | +Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> |
| 40 | +Link: https://lore.kernel.org/r/20220103013623.17052-1-pkshih@realtek.com |
| 41 | +Signed-off-by: Johannes Berg <johannes.berg@intel.com> |
| 42 | +--- |
| 43 | + net/mac80211/rx.c | 2 +- |
| 44 | + 1 file changed, 1 insertion(+), 1 deletion(-) |
| 45 | + |
| 46 | +diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c |
| 47 | +index fec82f7c2fa6f..93680af62c47d 100644 |
| 48 | +--- a/net/mac80211/rx.c |
| 49 | ++++ b/net/mac80211/rx.c |
| 50 | +@@ -4929,7 +4929,7 @@ void ieee80211_rx_list(struct ieee80211_hw *hw, struct ieee80211_sta *pubsta, |
| 51 | + goto drop; |
| 52 | + break; |
| 53 | + case RX_ENC_VHT: |
| 54 | +- if (WARN_ONCE(status->rate_idx > 9 || |
| 55 | ++ if (WARN_ONCE(status->rate_idx > 11 || |
| 56 | + !status->nss || |
| 57 | + status->nss > 8, |
| 58 | + "Rate marked as a VHT rate but data is invalid: MCS: %d, NSS: %d\n", |
| 59 | \ No newline at end of file |
| 60 | -- |
| 61 | 2.18.0 |
| 62 | |