]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HE: Option to disable HE ER SU in HE operation in AP mode
authorShay Bar <shay.bar@celeno.com>
Wed, 21 Jul 2021 05:46:26 +0000 (08:46 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 25 Aug 2021 09:45:14 +0000 (12:45 +0300)
Add option to disable 242-tone HE ER SU PPDU reception by the AP
in HE operation IE.

Signed-off-by: Shay Bar <shay.bar@celeno.com>
hostapd/config_file.c
hostapd/hostapd.conf
src/ap/ap_config.h
src/ap/ieee802_11_he.c

index 9bc1dc7756e9d8e36d87278deac02d84a9897dc8..7b03edf36f2a7b6fd184db58aba9d1d8b2db8f5e 100644 (file)
@@ -3515,6 +3515,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                conf->he_op.he_twt_responder = 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_er_su_disable") == 0) {
+               conf->he_op.he_er_su_disable = atoi(pos);
        } else if (os_strcmp(buf, "he_basic_mcs_nss_set") == 0) {
                conf->he_op.he_basic_mcs_nss_set = atoi(pos);
        } else if (os_strcmp(buf, "he_mu_edca_qos_info_param_count") == 0) {
index b5d15061f85083f2b1ee8f57b47e75d6f5145752..dbdd3d7fbfc23f86878771ff2b5c71b1d2e675f6 100644 (file)
@@ -841,6 +841,11 @@ wmm_ac_vo_acm=0
 # unsigned integer = duration in units of 16 us
 #he_rts_threshold=0
 
+#he_er_su_disable: Disable 242-tone HE ER SU PPDU reception by the AP
+# 0 = enable reception (default)
+# 1 = disable reception
+#he_er_su_disable=0
+
 # HE operating channel information; see matching vht_* parameters for details.
 # he_oper_centr_freq_seg0_idx field is used to indicate center frequency of 80
 # and 160 MHz bandwidth operation. In 80+80 MHz operation, it is the center
index ced36f9cc828083452ca4318ab920fe924a1eb7f..3ba368987a7d2e85c78769701f15c0e6f1ab76e6 100644 (file)
@@ -916,6 +916,7 @@ struct he_operation {
        u8 he_twt_required;
        u8 he_twt_responder;
        u16 he_rts_threshold;
+       u8 he_er_su_disable;
        u16 he_basic_mcs_nss_set;
 };
 
index cbe5e639588f8391dbb4d8c9e1c1d6a98bd8f196..6cd6c90dcf021808b23e6749edd72520d0b899ac 100644 (file)
@@ -192,6 +192,9 @@ u8 * hostapd_eid_he_operation(struct hostapd_data *hapd, u8 *eid)
                params |= (hapd->iface->conf->he_op.he_rts_threshold <<
                           HE_OPERATION_RTS_THRESHOLD_OFFSET);
 
+       if (hapd->iface->conf->he_op.he_er_su_disable)
+               params |= HE_OPERATION_ER_SU_DISABLE;
+
        if (hapd->iface->conf->he_op.he_bss_color_disabled)
                params |= HE_OPERATION_BSS_COLOR_DISABLED;
        if (hapd->iface->conf->he_op.he_bss_color_partial)