From 23a71230cec01409bc535e110a52e70ba2511319 Mon Sep 17 00:00:00 2001 From: Aloka Dixit Date: Tue, 29 Jun 2021 17:20:42 -0700 Subject: [PATCH 05/23] eht: beamforming capabilities configuration Add configuration options to set SU/MU beamforming capabilities. Signed-off-by: Aloka Dixit --- hostapd/config_file.c | 6 ++++++ src/ap/ap_config.h | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/hostapd/config_file.c b/hostapd/config_file.c index b15f94889f16..dada06c365b2 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -4733,6 +4733,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, diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h index 0670a7c3380c..69f8ddac0396 100644 --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h @@ -937,6 +937,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 */ @@ -1106,6 +1115,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 */ }; -- 2.31.1