From: Benjamin Berg <benjamin.berg@xxxxxxxxx> 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@xxxxxxxxx> Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski@xxxxxxxxx> --- 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 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap