]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Make reconnect-on-disassoc debug prints somewhat more helpful
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 1 Dec 2011 16:22:10 +0000 (18:22 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 1 Dec 2011 16:22:10 +0000 (18:22 +0200)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/events.c

index c9e53caf3c544ea8d7e4ef4a809fca37807216ef..82639d33ab21971917214068d38df37e97cd68d1 100644 (file)
@@ -1562,10 +1562,14 @@ static void wpa_supplicant_event_disassoc(struct wpa_supplicant *wpa_s,
        if (!wpa_s->auto_reconnect_disabled ||
            wpa_s->key_mgmt == WPA_KEY_MGMT_WPS) {
                wpa_dbg(wpa_s, MSG_DEBUG, "WPA: Auto connect enabled: try to "
-                       "reconnect (wps=%d)",
-                       wpa_s->key_mgmt == WPA_KEY_MGMT_WPS);
+                       "reconnect (wps=%d wpa_state=%d)",
+                       wpa_s->key_mgmt == WPA_KEY_MGMT_WPS,
+                       wpa_s->wpa_state);
                if (wpa_s->wpa_state >= WPA_ASSOCIATING)
                        wpa_supplicant_req_scan(wpa_s, 0, 100000);
+               else
+                       wpa_dbg(wpa_s, MSG_DEBUG, "Do not request new "
+                               "immediate scan");
        } else {
                wpa_dbg(wpa_s, MSG_DEBUG, "WPA: Auto connect disabled: do not "
                        "try to re-connect");