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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-01-03 08:55:51 +02:00
parent 2f30cac36f
commit 9b850799c1

View file

@ -166,7 +166,7 @@ int wpa_supplicant_trigger_scan(struct wpa_supplicant *wpa_s,
wpa_s->scan_runs++; wpa_s->scan_runs++;
wpa_s->normal_scans++; wpa_s->normal_scans++;
wpa_s->own_scan_requested = 1; wpa_s->own_scan_requested = 1;
params->only_new_results = 0; wpa_s->clear_driver_scan_cache = 0;
} }
return ret; return ret;