aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-08-30 16:10:22 +0300
committerArik Nemtsov <arik@wizery.com>2012-09-04 16:00:29 +0300
commitd8833b11427e550f1cbc8f867fa9a05b69b37ea1 (patch)
tree7ec9a226e5bda19f0400b7e8a23413f0825bda71
parentfd007609ed7cd93887dd4deabcdc91c87314a7fc (diff)
downloadexternal_wpa_supplicant_8_ti-d8833b11427e550f1cbc8f867fa9a05b69b37ea1.zip
external_wpa_supplicant_8_ti-d8833b11427e550f1cbc8f867fa9a05b69b37ea1.tar.gz
external_wpa_supplicant_8_ti-d8833b11427e550f1cbc8f867fa9a05b69b37ea1.tar.bz2
Revert "Supply the connection scan results to bgscan after init"
This reverts commit 1cd9da6b88d7dd9b3c887b62a584aba4bb08299f. This old commit has a memory leak. Use a newer commit from upstream that amends this.
-rw-r--r--wpa_supplicant/wpa_supplicant.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 56a8fe1..7d44e4c 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -554,12 +554,8 @@ void wpa_supplicant_start_bgscan(struct wpa_supplicant *wpa_s)
* optimization, so the initial connection is not
* affected.
*/
- } else {
- struct wpa_scan_results *scan_res =
- wpa_supplicant_get_scan_results(wpa_s, NULL, 0);
+ } else
wpa_s->bgscan_ssid = wpa_s->current_ssid;
- bgscan_notify_scan(wpa_s, scan_res);
- }
} else
wpa_s->bgscan_ssid = NULL;
}