]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HE: Enable channel switch similarly to VHT
authorJohn Crispin <john@phrozen.org>
Mon, 20 May 2019 07:55:09 +0000 (09:55 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 27 May 2019 14:42:14 +0000 (17:42 +0300)
Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com>
Signed-off-by: John Crispin <john@phrozen.org>
src/ap/hostapd.c

index a333ba137790b94dbf1cc7e7db7ea4ff470b99d6..55093adbeb37ddeae440c211eb1ad9ae865743ae 100644 (file)
@@ -3303,10 +3303,11 @@ static int hostapd_fill_csa_settings(struct hostapd_data *hapd,
                    &hapd->iface->cs_oper_class,
                    &chan) == NUM_HOSTAPD_MODES) {
                wpa_printf(MSG_DEBUG,
-                          "invalid frequency for channel switch (freq=%d, sec_channel_offset=%d, vht_enabled=%d)",
+                          "invalid frequency for channel switch (freq=%d, sec_channel_offset=%d, vht_enabled=%d, he_enabled=%d)",
                           settings->freq_params.freq,
                           settings->freq_params.sec_channel_offset,
-                          settings->freq_params.vht_enabled);
+                          settings->freq_params.vht_enabled,
+                          settings->freq_params.he_enabled);
                return -1;
        }
 
@@ -3444,6 +3445,7 @@ hostapd_switch_channel_fallback(struct hostapd_iface *iface,
        hostapd_set_oper_chwidth(iface->conf, bw);
        iface->conf->ieee80211n = freq_params->ht_enabled;
        iface->conf->ieee80211ac = freq_params->vht_enabled;
+       iface->conf->ieee80211ax = freq_params->he_enabled;
 
        /*
         * cs_params must not be cleared earlier because the freq_params