Enable BSS Transition Management in wpa_supplicant AP mode

Enable BTM capability for AP mode only and do not affect P2P GO mode.
This can be used for AP band steering when using wpa_supplicant to
control AP mode operations.

Signed-off-by: Chaoli Zhou <quic_zchaoli@quicinc.com>
This commit is contained in:
Chaoli Zhou 2022-03-21 13:38:45 +08:00 committed by Jouni Malinen
parent 30ecf0181d
commit eb2e6b56bb

View file

@ -1105,6 +1105,11 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
hapd_iface->bss[i]->ext_eapol_frame_io =
wpa_s->ext_eapol_frame_io;
#endif /* CONFIG_TESTING_OPTIONS */
#ifdef CONFIG_WNM_AP
if (ssid->mode == WPAS_MODE_AP)
hapd_iface->bss[i]->conf->bss_transition = 1;
#endif /* CONFIG_WNM_AP */
}
os_memcpy(hapd_iface->bss[0]->own_addr, wpa_s->own_addr, ETH_ALEN);