3 @@ -140,6 +140,24 @@ int hostapd_reload_config(struct hostapd
7 + hostapd_select_hw_mode(iface);
8 + iface->freq = hostapd_hw_get_freq(hapd, newconf->channel);
10 + if (hostapd_set_freq(hapd, newconf->hw_mode, iface->freq,
12 + newconf->ieee80211n,
13 + newconf->ieee80211ac,
14 + newconf->secondary_channel,
15 + newconf->vht_oper_chwidth,
16 + newconf->vht_oper_centr_freq_seg0_idx,
17 + newconf->vht_oper_centr_freq_seg1_idx)) {
18 + wpa_printf(MSG_ERROR, "Could not set channel for "
22 + if (iface->current_mode)
23 + hostapd_prepare_rates(iface, iface->current_mode);
25 for (j = 0; j < iface->num_bss; j++) {
27 hapd->iconf = newconf;