]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Allow autoscan parameters to be changed in SCANNING state
authorJouni Malinen <j@w1.fi>
Tue, 26 Jun 2012 17:11:25 +0000 (20:11 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 26 Jun 2012 17:11:25 +0000 (20:11 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/ctrl_iface.c
wpa_supplicant/dbus/dbus_new_handlers.c

index 338fd5f63e64f769565176c15372aeaa44ab478a..ec8c8a1e47be1d23088485d49d72c61554787d2c 100644 (file)
@@ -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;
 }
index eb902f6bc468a1c74e63f26b6ce96d8ef0d514b6..bde2aff2730b0344d6ba561ecb394f3a4c292e98 100644 (file)
@@ -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);