aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-06-26 16:52:46 (GMT)
committerJouni Malinen <j@w1.fi>2012-06-26 16:52:46 (GMT)
commit992189991ca99e89208a1bad4cb4305e115dd66f (patch)
tree3f80d58ceb305bfdb6cbfdc34c2697bf92c895bc /wpa_supplicant/dbus
parent460b36d0c0c30c42ed5337378959a88e9a108213 (diff)
downloadhostap-992189991ca99e89208a1bad4cb4305e115dd66f.zip
hostap-992189991ca99e89208a1bad4cb4305e115dd66f.tar.gz
hostap-992189991ca99e89208a1bad4cb4305e115dd66f.tar.bz2
Start autoscan for first connection attempt
Use wpa_supplicant_set_state() to initialize state to DISCONNECT so that autoscan gets initialized properly. This needs a change in autoscan_init() to avoid extra scan request that would postpone the first scan request when an interface is added. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/dbus')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index 4ac6716..eb902f6 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c
@@ -1841,7 +1841,7 @@ DBusMessage * wpas_dbus_handler_autoscan(DBusMessage *message,
os_free(wpa_s->conf->autoscan);
wpa_s->conf->autoscan = tmp;
if (state == WPA_DISCONNECTED || state == WPA_INACTIVE)
- autoscan_init(wpa_s);
+ autoscan_init(wpa_s, 1);
}
} else if (arg != NULL && os_strlen(arg) == 0) {
os_free(wpa_s->conf->autoscan);