[PATCH] do not perform CSA on disabled BSS.

Baligh Gasmi gasmibal at gmail.com
Sun Jan 28 09:08:09 PST 2024


It is useless to perform a channel switch, by announcing the new channel
information: CSA (Channel Switch Announcement), if the BSS is not running.

Signed-off-by: Baligh Gasmi <gasmibal at gmail.com>
---
 hostapd/ctrl_iface.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 2ba9856b4..7ccb3ca3b 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -2715,6 +2715,10 @@ static int hostapd_ctrl_iface_chan_switch(struct hostapd_iface *iface,
 
 	for (i = 0; i < iface->num_bss; i++) {
 
+		if(iface->bss[i]->disabled) {
+			continue;
+		}
+
 		/* Save CHAN_SWITCH VHT, HE, and EHT config */
 		hostapd_chan_switch_config(iface->bss[i],
 					   &settings.freq_params);
-- 
2.40.1




More information about the Hostap mailing list