diff options
author | Yoni Divinsky <yoni.divinsky@ti.com> | 2012-08-17 20:53:44 +0300 |
---|---|---|
committer | Arik Nemtsov <arik@wizery.com> | 2012-09-04 16:00:29 +0300 |
commit | 7a9961abe5f7463fd89acc8bb59a38cadd897910 (patch) | |
tree | 96824d2a1eac556d4b23ab91f76bb8f82e1da6ef | |
parent | d8833b11427e550f1cbc8f867fa9a05b69b37ea1 (diff) | |
download | external_wpa_supplicant_8_ti-7a9961abe5f7463fd89acc8bb59a38cadd897910.zip external_wpa_supplicant_8_ti-7a9961abe5f7463fd89acc8bb59a38cadd897910.tar.gz external_wpa_supplicant_8_ti-7a9961abe5f7463fd89acc8bb59a38cadd897910.tar.bz2 |
Supply the connection scan results to bgscan after init
If bgscan is enabled, then bgscan is initiated after the connection,
with no bss scan result information. Since a scan was performed prior to
the connection, the information exists and can be used to initialize the
bgscan's cache.
Signed-hostap: Yoni Divinsky <yoni.divinsky@ti.com>
-rw-r--r-- | wpa_supplicant/wpa_supplicant.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 7d44e4c..73ffde8 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -554,8 +554,16 @@ void wpa_supplicant_start_bgscan(struct wpa_supplicant *wpa_s) * optimization, so the initial connection is not * affected. */ - } else + } else { + struct wpa_scan_results *scan_res; wpa_s->bgscan_ssid = wpa_s->current_ssid; + scan_res = wpa_supplicant_get_scan_results(wpa_s, NULL, + 0); + if (scan_res) { + bgscan_notify_scan(wpa_s, scan_res); + wpa_scan_results_free(scan_res); + } + } } else wpa_s->bgscan_ssid = NULL; } |