]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: ieee80211: fix definition of EHT-MCS 15 in MRU
authorShayne Chen <shayne.chen@mediatek.com>
Fri, 13 Mar 2026 06:21:49 +0000 (14:21 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 13 Mar 2026 13:48:15 +0000 (14:48 +0100)
According to the definition in IEEE Std 802.11be-2024, Table 9-417r, each
bit indicates support for the transmission and reception of EHT-MCS 15 in:
- B0: 52+26-tone and 106+26-tone MRUs.
- B1: a 484+242-tone MRU if 80 MHz is supported.
- B2: a 996+484-tone MRU and a 996+484+242-tone MRU if 160 MHz is
      supported.
- B3: a 3×996-tone MRU if 320 MHz is supported.

Fixes: 6239da18d2f9 ("wifi: mac80211: adjust EHT capa when lowering bandwidth")
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Link: https://patch.msgid.link/20260313062150.3165433-1-shayne.chen@mediatek.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211-eht.h

index f8e9f5d36d2a2d7eea979a503b13a70a4c3e2f42..a97b1d01f3acf0f98f4c77a926ce190ee1ba2cff 100644 (file)
@@ -251,8 +251,8 @@ struct ieee80211_eht_operation_info {
 #define IEEE80211_EHT_PHY_CAP5_SUPP_EXTRA_EHT_LTF              0x40
 #define IEEE80211_EHT_PHY_CAP6_MAX_NUM_SUPP_EHT_LTF_MASK       0x07
 
-#define IEEE80211_EHT_PHY_CAP6_MCS15_SUPP_80MHZ                        0x08
-#define IEEE80211_EHT_PHY_CAP6_MCS15_SUPP_160MHZ               0x30
+#define IEEE80211_EHT_PHY_CAP6_MCS15_SUPP_80MHZ                        0x10
+#define IEEE80211_EHT_PHY_CAP6_MCS15_SUPP_160MHZ               0x20
 #define IEEE80211_EHT_PHY_CAP6_MCS15_SUPP_320MHZ               0x40
 #define IEEE80211_EHT_PHY_CAP6_MCS15_SUPP_MASK                 0x78
 #define IEEE80211_EHT_PHY_CAP6_EHT_DUP_6GHZ_SUPP               0x80