aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-05-12 16:15:33 (GMT)
committerJouni Malinen <j@w1.fi>2013-05-12 16:18:55 (GMT)
commit3636b891b75ada4fdb8a70dd462c66c21a65d6a8 (patch)
tree7225655885560ad7f98261050b9ccd6803e7cbec /wpa_supplicant/events.c
parent0cdb93fe9ffe2bfb125f6f758f837a09e7762155 (diff)
downloadhostap-3636b891b75ada4fdb8a70dd462c66c21a65d6a8.zip
hostap-3636b891b75ada4fdb8a70dd462c66c21a65d6a8.tar.gz
hostap-3636b891b75ada4fdb8a70dd462c66c21a65d6a8.tar.bz2
Do not try auto connect mechanism in disconnected state
This cleans up debug log by not requesting the auto connect on dissassociation event if we are already in disconnected state and would not try to connect anyway. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 98ef1bf..463c8e6 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1964,8 +1964,9 @@ static void wpa_supplicant_event_disassoc_finish(struct wpa_supplicant *wpa_s,
"pre-shared key may be incorrect");
wpas_auth_failed(wpa_s);
}
- if (!wpa_s->auto_reconnect_disabled ||
- wpa_s->key_mgmt == WPA_KEY_MGMT_WPS) {
+ if (!wpa_s->disconnected &&
+ (!wpa_s->auto_reconnect_disabled ||
+ wpa_s->key_mgmt == WPA_KEY_MGMT_WPS)) {
wpa_dbg(wpa_s, MSG_DEBUG, "Auto connect enabled: try to "
"reconnect (wps=%d wpa_state=%d)",
wpa_s->key_mgmt == WPA_KEY_MGMT_WPS,