[PATCH 5/7] AP: Configure channel switch in ap_switch_channel
Benjamin Berg
benjamin at sipsolutions.net
Thu Jul 31 06:57:01 PDT 2025
From: Benjamin Berg <benjamin.berg at intel.com>
Without this the post-channel switch configuration is not stored and all
features (HT/VHT/HE/EHT) will be disabled after the switch. This fixes
P2P channel switching to still use HT after the switch as was announced.
Signed-off-by: Benjamin Berg <benjamin.berg at intel.com>
Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
wpa_supplicant/ap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index bf68d4425a..cbd09d57c2 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -1841,6 +1841,8 @@ int ap_switch_channel(struct wpa_supplicant *wpa_s,
if (!iface || !iface->bss[0])
return -1;
+ hostapd_chan_switch_config(iface->bss[0], &settings->freq_params);
+
return hostapd_switch_channel(iface->bss[0], settings);
#else /* NEED_AP_MLME */
return -1;
--
2.50.1
More information about the Hostap
mailing list