aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-11-22 18:12:12 (GMT)
committerJouni Malinen <j@w1.fi>2014-11-22 18:17:47 (GMT)
commit75d65857d5b42e0ea9503260447aff48d6ac18fb (patch)
treefb239b31d5002a8d5d0dc3ff1b1990c7edc66ef5 /wpa_supplicant/events.c
parente1117c1c01f79290856518eff82b1b6d957ab078 (diff)
downloadhostap-75d65857d5b42e0ea9503260447aff48d6ac18fb.zip
hostap-75d65857d5b42e0ea9503260447aff48d6ac18fb.tar.gz
hostap-75d65857d5b42e0ea9503260447aff48d6ac18fb.tar.bz2
WNM: Use recent scan results on BSS transition request
If the last scans are recent (for now, less than ten seconds old), use them instead of triggering a new scan when a BSS Transition Management Request frame is received. As a fallback, allow a new scan to be triggered if no matches were found. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-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 ee2801c..0ffda4d 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1314,7 +1314,7 @@ static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s,
return 0;
}
- if (wnm_scan_process(wpa_s) > 0)
+ if (wnm_scan_process(wpa_s, 1) > 0)
goto scan_work_done;
if (sme_proc_obss_scan(wpa_s) > 0)