aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-09-14 07:07:54 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-14 07:07:54 (GMT)
commitea184114ca04ac42f219bb655da5e11dc0a8f73b (patch)
treea7e8aa006be7f0f9bd7f1714f129c422afd646ac
parent0f66abd25bde08f4bf8464002430f14e58125930 (diff)
downloadhostap-ea184114ca04ac42f219bb655da5e11dc0a8f73b.zip
hostap-ea184114ca04ac42f219bb655da5e11dc0a8f73b.tar.gz
hostap-ea184114ca04ac42f219bb655da5e11dc0a8f73b.tar.bz2
Allow auto-connect to request scan in associating state
Disconnection event may be received while in associating state. Previously, wpa_supplicant could get stuck not trying to reconnect in that case at least with nl80211. Allow scan request in this state to avoid the issue. This helps especially with APs that do load balancing by sending Deauthentication frame as a response to Reassociation Request frame after successful Authentication frame exchange.
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 0b26a9b..4be6475 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1230,7 +1230,7 @@ static void wpa_supplicant_event_disassoc(struct wpa_supplicant *wpa_s,
wpa_printf(MSG_DEBUG, "WPA: Auto connect enabled: try to "
"reconnect (wps=%d)",
wpa_s->key_mgmt == WPA_KEY_MGMT_WPS);
- if (wpa_s->wpa_state >= WPA_ASSOCIATED)
+ if (wpa_s->wpa_state >= WPA_ASSOCIATING)
wpa_supplicant_req_scan(wpa_s, 0, 100000);
} else {
wpa_printf(MSG_DEBUG, "WPA: Auto connect disabled: do not try "