From: Benjamin Berg Date: Thu, 31 Jul 2025 13:57:01 +0000 (+0200) Subject: AP: Configure channel switch in wpa_supplicant ap_switch_channel() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c789abc6d42de148380596c5d8a321ba4ac912cd;p=thirdparty%2Fhostap.git AP: Configure channel switch in wpa_supplicant ap_switch_channel() 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 Reviewed-by: Andrei Otcheretianski --- diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index 3cb33c49b..311df6075 100644 --- a/wpa_supplicant/ap.c +++ b/wpa_supplicant/ap.c @@ -1843,6 +1843,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;