Update ieee80211ac when channel switching

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>
This commit is contained in:
peterhuang 2021-08-19 19:22:06 +08:00 committed by Jouni Malinen
parent e6db1bc5da
commit 5606ede121

View 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);