From eb2e6b56bb3d6b6242ee0dec3d3d957c55fed589 Mon Sep 17 00:00:00 2001 From: Chaoli Zhou Date: Mon, 21 Mar 2022 13:38:45 +0800 Subject: [PATCH] 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 --- wpa_supplicant/ap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index 0559822cb..0a972f566 100644 --- a/wpa_supplicant/ap.c +++ b/wpa_supplicant/ap.c @@ -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);