You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
673 B
24 lines
673 B
14 years ago
|
--- a/src/ap/hostapd.c
|
||
|
+++ b/src/ap/hostapd.c
|
||
12 years ago
|
@@ -140,6 +140,20 @@ int hostapd_reload_config(struct hostapd
|
||
14 years ago
|
oldconf = hapd->iconf;
|
||
|
iface->conf = newconf;
|
||
|
|
||
12 years ago
|
+ hostapd_select_hw_mode(iface);
|
||
|
+ iface->freq = hostapd_hw_get_freq(hapd, newconf->channel);
|
||
|
+
|
||
|
+ if (hostapd_set_freq(hapd, newconf->hw_mode, iface->freq,
|
||
|
+ newconf->channel,
|
||
|
+ newconf->ieee80211n,
|
||
|
+ newconf->secondary_channel)) {
|
||
|
+ wpa_printf(MSG_ERROR, "Could not set channel for "
|
||
|
+ "kernel driver");
|
||
|
+ }
|
||
|
+
|
||
14 years ago
|
+ if (iface->current_mode)
|
||
13 years ago
|
+ hostapd_prepare_rates(iface, iface->current_mode);
|
||
14 years ago
|
+
|
||
|
for (j = 0; j < iface->num_bss; j++) {
|
||
|
hapd = iface->bss[j];
|
||
|
hapd->iconf = newconf;
|