aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-11-25 14:30:30 (GMT)
committerJouni Malinen <j@w1.fi>2012-11-25 14:30:30 (GMT)
commit9796a86c2382eab4a9c1bb4c03ea4944051d78ea (patch)
treeb8dff24d35d0ecaca5a4ba3b9bc74d1ead6c2d4f /wpa_supplicant/dbus
parentc27a94f765aea89c5fa1a6d74a208dcd18da422f (diff)
downloadhostap-9796a86c2382eab4a9c1bb4c03ea4944051d78ea.zip
hostap-9796a86c2382eab4a9c1bb4c03ea4944051d78ea.tar.gz
hostap-9796a86c2382eab4a9c1bb4c03ea4944051d78ea.tar.bz2
Use a shared function for requesting a new connection
Both the ctrl_iface and D-Bus interface use similar functionality to request a new connection. Combine these to a single function to avoid need to maintain duplicated implementation. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/dbus')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index ce73667..7d15729 100644
--- a/wpa_supplicant/dbus/dbus_new_handlers.c
+++ b/wpa_supplicant/dbus/dbus_new_handlers.c
@@ -1455,13 +1455,7 @@ DBusMessage * wpas_dbus_handler_reassociate(DBusMessage *message,
struct wpa_supplicant *wpa_s)
{
if (wpa_s->current_ssid != NULL) {
- wpa_s->extra_blacklist_count = 0;
- wpa_s->normal_scans = 0;
- wpa_supplicant_reinit_autoscan(wpa_s);
- wpa_s->disconnected = 0;
- wpa_s->reassociate = 1;
- wpa_supplicant_req_scan(wpa_s, 0, 0);
-
+ wpas_request_connection(wpa_s);
return NULL;
}