]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EHT: Add configuration options for beamforming capabilities
authorAloka Dixit <quic_alokad@quicinc.com>
Tue, 19 Apr 2022 18:04:05 +0000 (11:04 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 29 Apr 2022 14:28:39 +0000 (17:28 +0300)
Add configuration options to set EHT SU/MU beamforming capabilities.

Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Signed-off-by: Pradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>
hostapd/config_file.c
hostapd/hostapd.conf
src/ap/ap_config.h

index b60517db2b35797cc2c15ec9fc3a207643616c5b..97eea8eda23aa8b3ee0cc697e7772c072791c248 100644 (file)
@@ -4705,6 +4705,12 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                conf->eht_oper_chwidth = atoi(pos);
        } else if (os_strcmp(buf, "eht_oper_centr_freq_seg0_idx") == 0) {
                conf->eht_oper_centr_freq_seg0_idx = atoi(pos);
+       } else if (os_strcmp(buf, "eht_su_beamformer") == 0) {
+               conf->eht_phy_capab.su_beamformer = atoi(pos);
+       } else if (os_strcmp(buf, "eht_su_beamformee") == 0) {
+               conf->eht_phy_capab.su_beamformee = atoi(pos);
+       } else if (os_strcmp(buf, "eht_mu_beamformer") == 0) {
+               conf->eht_phy_capab.mu_beamformer = atoi(pos);
 #endif /* CONFIG_IEEE80211BE */
        } else {
                wpa_printf(MSG_ERROR,
index 64e8cb3e8db46f189af6f7efc6367ce8c68fc0de..6ccb61115f8535e7418a07a0aa99fa92452bf94d 100644 (file)
@@ -1000,6 +1000,21 @@ wmm_ac_vo_acm=0
 #disable_11be: Boolean (0/1) to disable EHT for a specific BSS
 #disable_11be=0
 
+#eht_su_beamformer: EHT single user beamformer support
+# 0 = not supported (default)
+# 1 = supported
+#eht_su_beamformer=1
+
+#eht_su_beamformee: EHT single user beamformee support
+# 0 = not supported (default)
+# 1 = supported
+#eht_su_beamformee=1
+
+#eht_mu_beamformer: EHT multiple user beamformer support
+# 0 = not supported (default)
+# 1 = supported
+#eht_mu_beamformer=1
+
 # EHT operating channel information; see matching he_* parameters for details.
 # The field eht_oper_centr_freq_seg0_idx field is used to indicate center
 # frequency of 40, 80, and 160 MHz bandwidth operation.
index b6f2ee7010bdb5a2158befbf0b0773f9b542e99f..0739bc61cbb05daa903dc9bd96f1372ab4d7ccaa 100644 (file)
@@ -948,6 +948,15 @@ struct spatial_reuse {
        u8 srg_partial_bssid_bitmap[8];
 };
 
+/**
+ * struct eht_phy_capabilities_info - EHT PHY capabilities
+ */
+struct eht_phy_capabilities_info {
+       bool su_beamformer;
+       bool su_beamformee;
+       bool mu_beamformer;
+};
+
 /**
  * struct hostapd_config - Per-radio interface configuration
  */
@@ -1120,6 +1129,7 @@ struct hostapd_config {
 #ifdef CONFIG_IEEE80211BE
        u8 eht_oper_chwidth;
        u8 eht_oper_centr_freq_seg0_idx;
+       struct eht_phy_capabilities_info eht_phy_capab;
 #endif /* CONFIG_IEEE80211BE */
 };