Do not inform other virtual interfaces of scan results in all cases
[mech_eap.git] / wpa_supplicant / interworking.c
index b362bcb..22f709f 100644 (file)
@@ -59,7 +59,7 @@ static void interworking_reconnect(struct wpa_supplicant *wpa_s)
                if (now.sec - wpa_s->last_scan.sec <= 5) {
                        wpa_printf(MSG_DEBUG, "Interworking: Old scan results "
                                   "are fresh - connect without new scan");
-                       if (wpas_select_network_from_last_scan(wpa_s) == 0)
+                       if (wpas_select_network_from_last_scan(wpa_s) >= 0)
                                return;
                }
        }