Currently, support to exclude non-PSC 6 GHz channels is implemented
only for offloaded ACS. Extend the support to non-offloaded ACS using
the acs_exclude_6ghz_non_psc configuration option.
Signed-off-by: Suraj P Kizhakkethil <suraj.kizhakkethil@oss.qualcomm.com>
if (!is_in_freqlist(iface, chan2))
continue;
+ if (iface->conf->acs_exclude_6ghz_non_psc &&
+ !is_6ghz_psc_frequency(chan2->freq))
+ continue;
+
/* find the best channel in this segment */
if (!best || chan2->interference_factor <
best->interference_factor)