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@xxxxxxxxx> --- 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 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap