From fd170fabedd003152811bccc1df9268de92d90ed Mon Sep 17 00:00:00 2001 From: Tanya Singh Date: Thu, 25 Sep 2025 14:59:51 +0800 Subject: [PATCH] hostapd: initialize ht/vht/he mode on channel switch by default while using hostapd_cli chan_switch command Fixes: WIFI-14859 Signed-off-by: Tanya Singh --- ...itialize-mode-for-hostapd-cli-chan-switch.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 feeds/hostapd/hostapd/patches/zzzz-002-initialize-mode-for-hostapd-cli-chan-switch.patch diff --git a/feeds/hostapd/hostapd/patches/zzzz-002-initialize-mode-for-hostapd-cli-chan-switch.patch b/feeds/hostapd/hostapd/patches/zzzz-002-initialize-mode-for-hostapd-cli-chan-switch.patch new file mode 100644 index 000000000..bbb74afcb --- /dev/null +++ b/feeds/hostapd/hostapd/patches/zzzz-002-initialize-mode-for-hostapd-cli-chan-switch.patch @@ -0,0 +1,14 @@ +--- a/hostapd/ctrl_iface.c 2025-09-24 14:15:25.135668867 +0800 ++++ b/hostapd/ctrl_iface.c 2025-09-24 15:32:46.082317382 +0800 +@@ -2657,6 +2657,11 @@ static int hostapd_ctrl_iface_chan_switc + break; + } + ++ /* Initialize HT/VHT/HE parameters */ ++ settings.freq_params.ht_enabled = iface->conf->ieee80211n; ++ settings.freq_params.vht_enabled = iface->conf->ieee80211ac; ++ settings.freq_params.he_enabled = iface->conf->ieee80211ax; ++ + if (settings.freq_params.center_freq1) + dfs_range += hostapd_is_dfs_overlap( + iface, bandwidth, settings.freq_params.center_freq1);