Allow autoscan parameters to be changed in SCANNING state
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
c3d1223848
commit
99f0032409
2 changed files with 4 additions and 0 deletions
|
@ -3891,6 +3891,8 @@ static int wpa_supplicant_ctrl_iface_autoscan(struct wpa_supplicant *wpa_s,
|
|||
autoscan_deinit(wpa_s);
|
||||
else if (state == WPA_DISCONNECTED || state == WPA_INACTIVE)
|
||||
autoscan_init(wpa_s, 1);
|
||||
else if (state == WPA_SCANNING)
|
||||
wpa_supplicant_reinit_autoscan(wpa_s);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1842,6 +1842,8 @@ DBusMessage * wpas_dbus_handler_autoscan(DBusMessage *message,
|
|||
wpa_s->conf->autoscan = tmp;
|
||||
if (state == WPA_DISCONNECTED || state == WPA_INACTIVE)
|
||||
autoscan_init(wpa_s, 1);
|
||||
else if (state == WPA_SCANNING)
|
||||
wpa_supplicant_reinit_autoscan(wpa_s);
|
||||
}
|
||||
} else if (arg != NULL && os_strlen(arg) == 0) {
|
||||
os_free(wpa_s->conf->autoscan);
|
||||
|
|
Loading…
Reference in a new issue