From d8833b11427e550f1cbc8f867fa9a05b69b37ea1 Mon Sep 17 00:00:00 2001 From: Arik Nemtsov Date: Thu, 30 Aug 2012 16:10:22 +0300 Subject: 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. --- wpa_supplicant/wpa_supplicant.c | 6 +----- 1 file changed, 1 insertion(+), 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; } -- cgit v1.1