From: Suraj P Kizhakkethil Date: Thu, 24 Jul 2025 05:45:12 +0000 (+0530) Subject: ACS: Extend support to exclude 6 GHz non-PSC in non-offloaded ACS X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02c9d3376224c11a1396dfaa12ba5a82b2c81041;p=thirdparty%2Fhostap.git ACS: Extend support to exclude 6 GHz non-PSC in non-offloaded ACS 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 --- diff --git a/src/ap/acs.c b/src/ap/acs.c index 5a1e58207..22dcd87bf 100644 --- a/src/ap/acs.c +++ b/src/ap/acs.c @@ -936,6 +936,10 @@ acs_find_ideal_chan_mode(struct hostapd_iface *iface, 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)