|
@@ -2159,10 +2159,12 @@ static void wpa_supplicant_event_disassoc_finish(struct wpa_supplicant *wpa_s,
|
|
}
|
|
}
|
|
if (!wpa_s->disconnected &&
|
|
if (!wpa_s->disconnected &&
|
|
(!wpa_s->auto_reconnect_disabled ||
|
|
(!wpa_s->auto_reconnect_disabled ||
|
|
- wpa_s->key_mgmt == WPA_KEY_MGMT_WPS)) {
|
|
|
|
|
|
+ wpa_s->key_mgmt == WPA_KEY_MGMT_WPS ||
|
|
|
|
+ wpas_wps_searching(wpa_s))) {
|
|
wpa_dbg(wpa_s, MSG_DEBUG, "Auto connect enabled: try to "
|
|
wpa_dbg(wpa_s, MSG_DEBUG, "Auto connect enabled: try to "
|
|
- "reconnect (wps=%d wpa_state=%d)",
|
|
|
|
|
|
+ "reconnect (wps=%d/%d wpa_state=%d)",
|
|
wpa_s->key_mgmt == WPA_KEY_MGMT_WPS,
|
|
wpa_s->key_mgmt == WPA_KEY_MGMT_WPS,
|
|
|
|
+ wpas_wps_searching(wpa_s),
|
|
wpa_s->wpa_state);
|
|
wpa_s->wpa_state);
|
|
if (wpa_s->wpa_state == WPA_COMPLETED &&
|
|
if (wpa_s->wpa_state == WPA_COMPLETED &&
|
|
wpa_s->current_ssid &&
|
|
wpa_s->current_ssid &&
|