1 From: Muna Sinada <quic_msinada@quicinc.com>
2 Date: Wed, 5 Oct 2022 14:54:46 -0700
3 Subject: [PATCH] wifi: mac80211: Add HE MU-MIMO related flags in
6 Adding flags for SU Beamformer, SU Beamformee, MU Beamformer and Full
7 Bandwidth UL MU-MIMO for HE. This is utilized to pass MU-MIMO
8 configurations from user space to driver in AP mode.
10 Signed-off-by: Muna Sinada <quic_msinada@quicinc.com>
11 Link: https://lore.kernel.org/r/1665006886-23874-2-git-send-email-quic_msinada@quicinc.com
12 [fixed indentation, removed redundant !!]
13 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
16 --- a/include/net/mac80211.h
17 +++ b/include/net/mac80211.h
18 @@ -661,6 +661,15 @@ struct ieee80211_fils_discovery {
20 * @vht_mu_beamformee: in AP mode, does this BSS support operation as an VHT MU
22 + * @he_su_beamformer: in AP-mode, does this BSS support operation as an HE SU
24 + * @he_su_beamformee: in AP-mode, does this BSS support operation as an HE SU
26 + * @he_mu_beamformer: in AP-mode, does this BSS support operation as an HE MU
28 + * @he_full_ul_mumimo: does this BSS support the reception (AP) or transmission
29 + * (non-AP STA) of an HE TB PPDU on an RU that spans the entire PPDU
32 struct ieee80211_bss_conf {
34 @@ -739,6 +748,10 @@ struct ieee80211_bss_conf {
35 bool vht_su_beamformee;
36 bool vht_mu_beamformer;
37 bool vht_mu_beamformee;
38 + bool he_su_beamformer;
39 + bool he_su_beamformee;
40 + bool he_mu_beamformer;
41 + bool he_full_ul_mumimo;
45 --- a/net/mac80211/cfg.c
46 +++ b/net/mac80211/cfg.c
47 @@ -1281,6 +1281,21 @@ static int ieee80211_start_ap(struct wip
48 changed |= BSS_CHANGED_HE_BSS_COLOR;
51 + if (params->he_cap) {
52 + link_conf->he_su_beamformer =
53 + params->he_cap->phy_cap_info[3] &
54 + IEEE80211_HE_PHY_CAP3_SU_BEAMFORMER;
55 + link_conf->he_su_beamformee =
56 + params->he_cap->phy_cap_info[4] &
57 + IEEE80211_HE_PHY_CAP4_SU_BEAMFORMEE;
58 + link_conf->he_mu_beamformer =
59 + params->he_cap->phy_cap_info[4] &
60 + IEEE80211_HE_PHY_CAP4_MU_BEAMFORMER;
61 + link_conf->he_full_ul_mumimo =
62 + params->he_cap->phy_cap_info[2] &
63 + IEEE80211_HE_PHY_CAP2_UL_MU_FULL_MU_MIMO;
66 if (sdata->vif.type == NL80211_IFTYPE_AP &&
67 params->mbssid_config.tx_wdev) {
68 err = ieee80211_set_ap_mbssid_options(sdata,