]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Update ieee80211ac when channel switching
authorpeterhuang <peterhuang@realtek.com>
Thu, 19 Aug 2021 11:22:06 +0000 (19:22 +0800)
committerJouni Malinen <j@w1.fi>
Sun, 12 Dec 2021 20:36:51 +0000 (22:36 +0200)
hostapd will build wrong beacon_after in hostapd_fill_csa_settings() if
it doesn't update ieee80211ac when channel switching.

Signed-off-by: peterhuang <peterhuang@realtek.com>
src/ap/hostapd.c

index 913a8e29e16d3232268c700a97449fafa13d75d7..767314a479204feb800fd59e04f0bd9abfab8115 100644 (file)
@@ -3482,6 +3482,7 @@ static int hostapd_change_config_freq(struct hostapd_data *hapd,
 
        conf->channel = channel;
        conf->ieee80211n = params->ht_enabled;
+       conf->ieee80211ac = params->vht_enabled;
        conf->secondary_channel = params->sec_channel_offset;
        ieee80211_freq_to_chan(params->center_freq1,
                               &seg0);