From 02c9d3376224c11a1396dfaa12ba5a82b2c81041 Mon Sep 17 00:00:00 2001 From: Suraj P Kizhakkethil Date: Thu, 24 Jul 2025 11:15:12 +0530 Subject: [PATCH] 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 --- src/ap/acs.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.47.3