a3c44531bde728835bc5461448f5c4ecd98cf7b2
[openwrt/staging/blogic.git] /
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
4 ieee80211_bss_conf
5
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.
9
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>
14 ---
15
16 --- a/include/net/mac80211.h
17 +++ b/include/net/mac80211.h
18 @@ -661,6 +661,15 @@ struct ieee80211_fils_discovery {
19 * beamformer
20 * @vht_mu_beamformee: in AP mode, does this BSS support operation as an VHT MU
21 * beamformee
22 + * @he_su_beamformer: in AP-mode, does this BSS support operation as an HE SU
23 + * beamformer
24 + * @he_su_beamformee: in AP-mode, does this BSS support operation as an HE SU
25 + * beamformee
26 + * @he_mu_beamformer: in AP-mode, does this BSS support operation as an HE MU
27 + * beamformer
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
30 + * bandwidth
31 */
32 struct ieee80211_bss_conf {
33 const u8 *bssid;
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;
42 };
43
44 /**
45 --- a/net/mac80211/cfg.c
46 +++ b/net/mac80211/cfg.c
47 @@ -1280,6 +1280,21 @@ static int ieee80211_start_ap(struct wip
48 changed |= BSS_CHANGED_HE_BSS_COLOR;
49 }
50
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;
64 + }
65 +
66 if (sdata->vif.type == NL80211_IFTYPE_AP &&
67 params->mbssid_config.tx_wdev) {
68 err = ieee80211_set_ap_mbssid_options(sdata,