diff mbox series

[V3,1/8] HE: make the basic NSS/MCS configurable

Message ID 20190509193236.702-2-john@phrozen.org
State Superseded
Headers show
Series HE: add MLME and channel management support | expand

Commit Message

John Crispin May 9, 2019, 7:32 p.m. UTC
Add a config option to allow setting a custom Basic NSS/MCS set. As a
default we use single stream MCS0-7.

Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
Signed-off-by: John Crispin <john@phrozen.org>
---
 hostapd/config_file.c | 2 ++
 src/ap/ap_config.c    | 2 ++
 src/ap/ap_config.h    | 1 +
 3 files changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 71f1efb60..64f61743d 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3472,6 +3472,8 @@  static int hostapd_config_fill(struct hostapd_config *conf,
 		conf->he_op.he_twt_required = atoi(pos);
 	} else if (os_strcmp(buf, "he_rts_threshold") == 0) {
 		conf->he_op.he_rts_threshold = atoi(pos);
+	} else if (os_strcmp(buf, "he_basic_mcs_mss_set") == 0) {
+		conf->he_op.he_basic_mcs_mss_set = atoi(pos);
 	} else if (os_strcmp(buf, "he_mu_edca_qos_info_param_count") == 0) {
 		conf->he_mu_edca.he_qos_info |=
 			set_he_cap(atoi(pos), HE_QOS_INFO_EDCA_PARAM_SET_COUNT);
diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c
index 2ace6023a..e83e8acde 100644
--- a/src/ap/ap_config.c
+++ b/src/ap/ap_config.c
@@ -239,6 +239,8 @@  struct hostapd_config * hostapd_config_defaults(void)
 #ifdef CONFIG_IEEE80211AX
 	conf->he_op.he_rts_threshold = HE_OPERATION_RTS_THRESHOLD_MASK >>
 		HE_OPERATION_RTS_THRESHOLD_OFFSET;
+	/* set default basic mcs/nss set to single stream mcs0-7 */
+	conf->he_op.he_basic_mcs_mss_set = 0xfffc;
 #endif /* CONFIG_IEEE80211AX */
 
 	/* The third octet of the country string uses an ASCII space character
diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h
index f18425224..1cd60be2a 100644
--- a/src/ap/ap_config.h
+++ b/src/ap/ap_config.h
@@ -738,6 +738,7 @@  struct he_operation {
 	u8 he_default_pe_duration;
 	u8 he_twt_required;
 	u16 he_rts_threshold;
+	u16 he_basic_mcs_mss_set;
 };
 
 /**