From 5e24beae025d5481f264de49003a5465e5052f99 Mon Sep 17 00:00:00 2001 From: Masashi Honma Date: Thu, 28 Feb 2013 16:33:28 +0200 Subject: [PATCH] Use scan results for reconnection This patch uses existing scan results for fast connection on REASSOCIATE and RECONNECT commands. Signed-hostap: Masashi Honma --- wpa_supplicant/wpa_supplicant.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index ef7a6f069..fc3a84b0d 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -3757,5 +3757,7 @@ void wpas_request_connection(struct wpa_supplicant *wpa_s) wpa_s->extra_blacklist_count = 0; wpa_s->disconnected = 0; wpa_s->reassociate = 1; - wpa_supplicant_req_scan(wpa_s, 0, 0); + + if (wpa_supplicant_fast_associate(wpa_s) != 1) + wpa_supplicant_req_scan(wpa_s, 0, 0); }