3 @@ -140,6 +140,20 @@ 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->secondary_channel)) {
14 + wpa_printf(MSG_ERROR, "Could not set channel for "
18 + if (iface->current_mode)
19 + hostapd_prepare_rates(iface, iface->current_mode);
21 for (j = 0; j < iface->num_bss; j++) {
23 hapd->iconf = newconf;