diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index ad9d77af8..b47573094 100644 --- a/wpa_supplicant/scan.c +++ b/wpa_supplicant/scan.c @@ -1109,7 +1109,9 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx) tssid = tssid->next) { if (wpas_network_disabled(wpa_s, tssid)) continue; - if ((params.freqs || !freqs_set) && tssid->scan_freq) { + if (((params.freqs || !freqs_set) && + tssid->scan_freq) && + int_array_len(params.freqs) < 100) { int_array_concat(¶ms.freqs, tssid->scan_freq); } else {