]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Do not disable other network profiles
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 16 Feb 2012 14:31:00 +0000 (16:31 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 16 Feb 2012 14:31:00 +0000 (16:31 +0200)
This allows previously configured network profiles to be used so
that user can indicate preference of manually configured networks.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/interworking.c

index ac89ff89f0f76607dc5e338b61679f1e8f293be2..56dd5b1a37400a87c345ba573d2854cdc63d7ddc 100644 (file)
@@ -608,7 +608,9 @@ static int interworking_connect_3gpp(struct wpa_supplicant *wpa_s,
            < 0)
                goto fail;
 
-       wpa_supplicant_select_network(wpa_s, ssid);
+       wpa_s->disconnected = 0;
+       wpa_s->reassociate = 1;
+       wpa_supplicant_req_scan(wpa_s, 0, 0);
 
        return 0;
 
@@ -746,7 +748,9 @@ int interworking_connect(struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
 
        nai_realm_free(realm, count);
 
-       wpa_supplicant_select_network(wpa_s, ssid);
+       wpa_s->disconnected = 0;
+       wpa_s->reassociate = 1;
+       wpa_supplicant_req_scan(wpa_s, 0, 0);
 
        return 0;