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@intel.com>
Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
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;