aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-10-30 20:37:12 (GMT)
committerJouni Malinen <j@w1.fi>2011-10-30 20:37:12 (GMT)
commit1bbff09ec5e1d2b67f9748eb24e5a3cc6d547ac0 (patch)
tree602510dda036220f4b5f9e843ef89353d16f4b0d
parent9354e59480fbdffa4e773728909d1e0d4a2be68a (diff)
downloadhostap-hostap-1-bp.zip
hostap-hostap-1-bp.tar.gz
hostap-hostap-1-bp.tar.bz2
Process RSN pre-authentication candidates when skipping roamhostap-1-bp
wpa_supplicant_rsn_preauth_scan_results() needs to be called to update RSN pre-authentication candidates. This cannot be done before the wpa_supplicant_connect() call on the first association, but when trying to figure out whether to roam, it is fine to do so for the case when roaming is skipped. Signed-hostap: Jouni Malinen <j@w1.fi>
-rw-r--r--wpa_supplicant/events.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 80ca869..9a0663b 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1090,8 +1090,10 @@ static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s,
skip = !wpa_supplicant_need_to_roam(wpa_s, selected, ssid,
scan_res);
wpa_scan_results_free(scan_res);
- if (skip)
+ if (skip) {
+ wpa_supplicant_rsn_preauth_scan_results(wpa_s);
return 0;
+ }
if (wpa_supplicant_connect(wpa_s, selected, ssid) < 0) {
wpa_dbg(wpa_s, MSG_DEBUG, "Connect failed");