Skip to content

Commit 22c64f3

Browse files
Mohan Kumar Gjmberg-intel
authored andcommitted
wifi: mac80211: Update MCS15 support in link_conf
As per IEEE 802.11be-2024 - 9.4.2.321, EHT operation element contains MCS15 Disable subfield as the sixth bit, which is set when MCS15 support is not enabled. Get MCS15 support from EHT operation params and add it in link_conf so that driver can use this value to know if EHT-MCS 15 reception is enabled. Co-developed-by: Dhanavandhana Kannan <[email protected]> Signed-off-by: Dhanavandhana Kannan <[email protected]> Signed-off-by: Mohan Kumar G <[email protected]> Link: https://patch.msgid.link/[email protected] [remove pointless !! for bool assignment] Signed-off-by: Johannes Berg <[email protected]>
1 parent 39c88e5 commit 22c64f3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

include/linux/ieee80211.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2325,6 +2325,7 @@ struct ieee80211_eht_cap_elem {
23252325
#define IEEE80211_EHT_OPER_EHT_DEF_PE_DURATION 0x04
23262326
#define IEEE80211_EHT_OPER_GROUP_ADDRESSED_BU_IND_LIMIT 0x08
23272327
#define IEEE80211_EHT_OPER_GROUP_ADDRESSED_BU_IND_EXP_MASK 0x30
2328+
#define IEEE80211_EHT_OPER_MCS15_DISABLE 0x40
23282329

23292330
/**
23302331
* struct ieee80211_eht_operation - eht operation element

include/net/mac80211.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ struct ieee80211_parsed_tpe {
744744
* @eht_80mhz_full_bw_ul_mumimo: in AP-mode, does this BSS support the
745745
* reception of an EHT TB PPDU on an RU that spans the entire PPDU
746746
* bandwidth
747+
* @eht_disable_mcs15: disable EHT-MCS 15 reception capability.
747748
* @bss_param_ch_cnt: in BSS-mode, the BSS params change count. This
748749
* information is the latest known value. It can come from this link's
749750
* beacon or from a beacon sent by another link.
@@ -852,6 +853,8 @@ struct ieee80211_bss_conf {
852853
bool eht_su_beamformee;
853854
bool eht_mu_beamformer;
854855
bool eht_80mhz_full_bw_ul_mumimo;
856+
bool eht_disable_mcs15;
857+
855858
u8 bss_param_ch_cnt;
856859
u8 bss_param_ch_cnt_link_id;
857860
};

net/mac80211/cfg.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,9 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev,
14211421
(IEEE80211_EHT_PHY_CAP7_NON_OFDMA_UL_MU_MIMO_80MHZ |
14221422
IEEE80211_EHT_PHY_CAP7_NON_OFDMA_UL_MU_MIMO_160MHZ |
14231423
IEEE80211_EHT_PHY_CAP7_NON_OFDMA_UL_MU_MIMO_320MHZ);
1424+
link_conf->eht_disable_mcs15 =
1425+
u8_get_bits(params->eht_oper->params,
1426+
IEEE80211_EHT_OPER_MCS15_DISABLE);
14241427
} else {
14251428
link_conf->eht_su_beamformer = false;
14261429
link_conf->eht_su_beamformee = false;

0 commit comments

Comments
 (0)