hostapd: Add config option to specify 6 GHz regulatory AP type

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>
This commit is contained in:
Pradeep Kumar Chitrapu 2022-04-07 16:56:53 -07:00 committed by Jouni Malinen
parent ee06165e96
commit 0eb686637d
3 changed files with 10 additions and 0 deletions

View file

@ -3597,6 +3597,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
line, pos); line, pos);
return 1; 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) { } else if (os_strcmp(buf, "he_oper_chwidth") == 0) {
conf->he_oper_chwidth = atoi(pos); conf->he_oper_chwidth = atoi(pos);
} else if (os_strcmp(buf, "he_oper_centr_freq_seg0_idx") == 0) { } else if (os_strcmp(buf, "he_oper_centr_freq_seg0_idx") == 0) {

View file

@ -965,6 +965,13 @@ wmm_ac_vo_acm=0
# (default) # (default)
#he_6ghz_tx_ant_pat=1 #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 # Unsolicited broadcast Probe Response transmission settings
# This is for the 6 GHz band only. If the interval is set to a non-zero value, # 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 # the AP schedules unsolicited broadcast Probe Response frames to be

View file

@ -1084,6 +1084,7 @@ struct hostapd_config {
u8 he_6ghz_max_ampdu_len_exp; u8 he_6ghz_max_ampdu_len_exp;
u8 he_6ghz_rx_ant_pat; u8 he_6ghz_rx_ant_pat;
u8 he_6ghz_tx_ant_pat; u8 he_6ghz_tx_ant_pat;
u8 he_6ghz_reg_pwr_type;
#endif /* CONFIG_IEEE80211AX */ #endif /* CONFIG_IEEE80211AX */
/* VHT enable/disable config from CHAN_SWITCH */ /* VHT enable/disable config from CHAN_SWITCH */