]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Interworking: Do not reconnect without "auto" parameter
authorJouni Malinen <j@w1.fi>
Sun, 19 Aug 2012 09:26:21 +0000 (12:26 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 19 Aug 2012 09:26:21 +0000 (12:26 +0300)
When there was no credential match, but an enabled network block matched
with a scan result, wpa_supplicant reconnected at the end of
interworking_select command even if "auto" parameter was not used. Fix
this by running the reconnect only if requested to automatically select
a network.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/interworking.c

index ea720d21a283d6137f418f8c6ce295a57b53b005..cdb7fbc10a43812df827d075e8b65e6b20d4311d 100644 (file)
@@ -1395,7 +1395,8 @@ static void interworking_select_network(struct wpa_supplicant *wpa_s)
                if (interworking_find_network_match(wpa_s)) {
                        wpa_printf(MSG_DEBUG, "Interworking: Possible BSS "
                                   "match for enabled network configurations");
-                       interworking_reconnect(wpa_s);
+                       if (wpa_s->auto_select)
+                               interworking_reconnect(wpa_s);
                        return;
                }