[PATCH V4 1/8] HE: make the basic NSS/MCS configurable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
Signed-off-by: John Crispin <john@xxxxxxxxxxx>
---
 hostapd/config_file.c | 2 ++
 src/ap/ap_config.c    | 2 ++
 src/ap/ap_config.h    | 1 +
 3 files changed, 5 insertions(+)

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;
 };
 
 /**
-- 
2.20.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux