|
@@ -1244,6 +1244,13 @@ int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s)
|
|
|
if (wpa_s->conf->filter_rssi)
|
|
|
params.filter_rssi = wpa_s->conf->filter_rssi;
|
|
|
|
|
|
+ /* See if user specified frequencies. If so, scan only those. */
|
|
|
+ if (wpa_s->conf->freq_list && !params.freqs) {
|
|
|
+ wpa_dbg(wpa_s, MSG_DEBUG,
|
|
|
+ "Optimize scan based on conf->freq_list");
|
|
|
+ int_array_concat(¶ms.freqs, wpa_s->conf->freq_list);
|
|
|
+ }
|
|
|
+
|
|
|
scan_params = ¶ms;
|
|
|
|
|
|
scan:
|