From 9b850799c12c3b326928efd37ee6b9443c178be8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 3 Jan 2014 08:55:51 +0200 Subject: [PATCH] Fix scan-cache-clearing operation to avoid unnecessary cases wpa_drv_scan() success case was supposed to clear wpa_s->clear_driver_scan_cache, not params->only_new_results (which would do nothing here). Signed-hostap: Jouni Malinen --- wpa_supplicant/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index 167ab9ddb..7e3496ebd 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -166,7 +166,7 @@ int wpa_supplicant_trigger_scan(struct wpa_supplicant *wpa_s, wpa_s->scan_runs++; wpa_s->normal_scans++; wpa_s->own_scan_requested = 1; - params->only_new_results = 0; + wpa_s->clear_driver_scan_cache = 0; } return ret;