Make reconnect-on-disassoc debug prints somewhat more helpful
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
a9e02d593d
commit
f7da5a9ef4
1 changed files with 6 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue