]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP: Always verify and fix channel switch configuration
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 31 Jul 2025 13:57:00 +0000 (15:57 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 6 Oct 2025 11:00:47 +0000 (14:00 +0300)
commit1e4c56c0f69695eb9f1326a7b5f7066163a651db
tree7edcef320d381d5010b437ce9c4a970019e1e841
parent261fab94c180b1eb2c8b0fb8f67621265245c38d
AP: Always verify and fix channel switch configuration

On the hostapd control interface, the CHAN_SWITCH command would do some
extra verification and also ensured that HT/VHT/HE/EHT is not being
disabled (as this is correctly supported currently). However, these
checks were missing on the wpa_supplicant side which would be used,
e.g., when a CHAN_SWITCH command is done on a GO interface.

Move these checks into the hostapd_parse_csa_settings() function to
ensure that they are correctly done in both cases. This fixes issues
where for example HT is getting accidentally disabled in a test, causing
a subsequent mac80211 disconnect. Some tests may occasionally trigger
this problem, but usually pass due to timing (this will be addressed by
a later commit).

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
hostapd/ctrl_iface.c
src/ap/ctrl_iface_ap.c
src/ap/ctrl_iface_ap.h
wpa_supplicant/ap.c