]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Add config option to specify 6 GHz regulatory AP type
authorPradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>
Thu, 7 Apr 2022 23:56:53 +0000 (16:56 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 8 Apr 2022 10:19:10 +0000 (13:19 +0300)
IEEE Std 802.11ax-2021 introduces Regulatory Info subfield to specify
the 6 GHz access point type per regulatory. Add a user config option for
specifying this.

When not specified, Indoor AP type is selected for the 6 GHz AP by
default.

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

index 0b6858a71bda344a7bdcf4b1a221ce4bcda8c9a4..7d1004fc92128fc08181c22a0c597add93d9af22 100644 (file)
@@ -3597,6 +3597,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                                   line, pos);
                        return 1;
                }
+       } else if (os_strcmp(buf, "he_6ghz_reg_pwr_type") == 0) {
+               conf->he_6ghz_reg_pwr_type = atoi(pos);
        } else if (os_strcmp(buf, "he_oper_chwidth") == 0) {
                conf->he_oper_chwidth = atoi(pos);
        } else if (os_strcmp(buf, "he_oper_centr_freq_seg0_idx") == 0) {
index 71c11989e6acc0bdfbdd9c7f4b682fa2d8d1583f..6930ad20de124dfe7b3774a333c097523b4f6117 100644 (file)
@@ -965,6 +965,13 @@ wmm_ac_vo_acm=0
 #     (default)
 #he_6ghz_tx_ant_pat=1
 
+# 6 GHz Access Point type
+# This config is to set the 6 GHz Access Point type. Possible options are:
+# 0 = Indoor AP (default)
+# 1 = Standard Power AP
+# This has no impact for operation on other bands.
+#he_6ghz_reg_pwr_type=0
+
 # Unsolicited broadcast Probe Response transmission settings
 # This is for the 6 GHz band only. If the interval is set to a non-zero value,
 # the AP schedules unsolicited broadcast Probe Response frames to be
index 18d1af2e56576e7384b76bf64627de7cc9ca4a0a..7f44de4014f93ba406e6eb418b82b4441f116d9c 100644 (file)
@@ -1084,6 +1084,7 @@ struct hostapd_config {
        u8 he_6ghz_max_ampdu_len_exp;
        u8 he_6ghz_rx_ant_pat;
        u8 he_6ghz_tx_ant_pat;
+       u8 he_6ghz_reg_pwr_type;
 #endif /* CONFIG_IEEE80211AX */
 
        /* VHT enable/disable config from CHAN_SWITCH */