From: John Crispin Date: Mon, 20 May 2019 07:55:08 +0000 (+0200) Subject: HE: Add HE channel management configuration options X-Git-Tag: hostap_2_9~244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05b28306f518d0c96095dbe23edd4dfe2ba590d2;p=thirdparty%2Fhostap.git HE: Add HE channel management configuration options These are symmetric with the VHT ones. Signed-off-by: Shashidhar Lakkavalli Signed-off-by: John Crispin --- diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 3ba37098c..9c0194e58 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -3600,6 +3600,12 @@ static int hostapd_config_fill(struct hostapd_config *conf, conf->spr.srg_obss_pd_min_offset = atoi(pos); } else if (os_strcmp(buf, "he_spr_srg_obss_pd_max_offset") == 0) { conf->spr.srg_obss_pd_max_offset = 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) { + conf->he_oper_centr_freq_seg0_idx = atoi(pos); + } else if (os_strcmp(buf, "he_oper_centr_freq_seg1_idx") == 0) { + conf->he_oper_centr_freq_seg1_idx = atoi(pos); #endif /* CONFIG_IEEE80211AX */ } else if (os_strcmp(buf, "max_listen_interval") == 0) { bss->max_listen_interval = atoi(pos); diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf index 97ae2930a..cf646031f 100644 --- a/hostapd/hostapd.conf +++ b/hostapd/hostapd.conf @@ -799,6 +799,11 @@ wmm_ac_vo_acm=0 # unsigned integer = duration in units of 16 us #he_rts_threshold=0 +# HE operating channel information; see matching vht_* parameters for details. +#he_oper_chwidth +#he_oper_centr_freq_seg0_idx +#he_oper_centr_freq_seg1_idx + #he_mu_edca_qos_info_param_count #he_mu_edca_qos_info_q_ack #he_mu_edca_qos_info_queue_request=1 diff --git a/src/ap/ap_config.h b/src/ap/ap_config.h index 2cc6a0dc3..f6d8d5a87 100644 --- a/src/ap/ap_config.h +++ b/src/ap/ap_config.h @@ -887,6 +887,9 @@ struct hostapd_config { struct he_operation he_op; struct ieee80211_he_mu_edca_parameter_set he_mu_edca; struct spatial_reuse spr; + u8 he_oper_chwidth; + u8 he_oper_centr_freq_seg0_idx; + u8 he_oper_centr_freq_seg1_idx; #endif /* CONFIG_IEEE80211AX */ /* VHT enable/disable config from CHAN_SWITCH */