]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix scan-cache-clearing operation to avoid unnecessary cases
authorJouni Malinen <j@w1.fi>
Fri, 3 Jan 2014 06:55:51 +0000 (08:55 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 3 Jan 2014 06:55:51 +0000 (08:55 +0200)
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 <j@w1.fi>

wpa_supplicant/scan.c

index 167ab9ddbe8168708cef011c85f7ceefa5d58ddf..7e3496ebd69bee25ade13d4dd08baf00c64e8fd2 100644 (file)
@@ -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;