Allow autoscan parameters to be changed in SCANNING state

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2012-06-26 20:11:25 +03:00
parent c3d1223848
commit 99f0032409
2 changed files with 4 additions and 0 deletions

View file

@ -3891,6 +3891,8 @@ static int wpa_supplicant_ctrl_iface_autoscan(struct wpa_supplicant *wpa_s,
autoscan_deinit(wpa_s); autoscan_deinit(wpa_s);
else if (state == WPA_DISCONNECTED || state == WPA_INACTIVE) else if (state == WPA_DISCONNECTED || state == WPA_INACTIVE)
autoscan_init(wpa_s, 1); autoscan_init(wpa_s, 1);
else if (state == WPA_SCANNING)
wpa_supplicant_reinit_autoscan(wpa_s);
return 0; return 0;
} }

View file

@ -1842,6 +1842,8 @@ DBusMessage * wpas_dbus_handler_autoscan(DBusMessage *message,
wpa_s->conf->autoscan = tmp; wpa_s->conf->autoscan = tmp;
if (state == WPA_DISCONNECTED || state == WPA_INACTIVE) if (state == WPA_DISCONNECTED || state == WPA_INACTIVE)
autoscan_init(wpa_s, 1); autoscan_init(wpa_s, 1);
else if (state == WPA_SCANNING)
wpa_supplicant_reinit_autoscan(wpa_s);
} }
} else if (arg != NULL && os_strlen(arg) == 0) { } else if (arg != NULL && os_strlen(arg) == 0) {
os_free(wpa_s->conf->autoscan); os_free(wpa_s->conf->autoscan);