]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HE: Add HE channel management configuration options
authorJohn Crispin <john@phrozen.org>
Mon, 20 May 2019 07:55:08 +0000 (09:55 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 27 May 2019 13:30:05 +0000 (16:30 +0300)
These are symmetric with the VHT ones.

Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
Signed-off-by: John Crispin <john@phrozen.org>
hostapd/config_file.c
hostapd/hostapd.conf
src/ap/ap_config.h

index 3ba37098c2bdd3294770f12fa0493b980fccc3ef..9c0194e586c839c1dd971f6b558f75a6616762a5 100644 (file)
@@ -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);
index 97ae2930addbd089164a8465952ed9629e86a7ad..cf646031f738630cdcd56800d4bd773521a4e8cf 100644 (file)
@@ -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
index 2cc6a0dc3e7e1b2fb59f42f6f04165edf72f63a3..f6d8d5a8717ffc4d862a2793ba3a9fce1d76692b 100644 (file)
@@ -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 */