Browse Source

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>
Jouni Malinen 11 years ago
parent
commit
9b850799c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wpa_supplicant/scan.c

+ 1 - 1
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;