Make reconnect-on-disassoc debug prints somewhat more helpful

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2011-12-01 18:22:10 +02:00 committed by Jouni Malinen
parent a9e02d593d
commit f7da5a9ef4

View File

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