Adding support for Transition Disable policy setting
With the implementation of seamless roaming across WPA3-SAE and
WPA2PSK, there is a need to avoid driver roam to APs with certain
security based on the Transition Disable policy set by the current AP.
The setting of Transition Disable policy to driver is done based
on the Transition disable bitmap received as part of EAPOL 3/4th frame.
Bug:210811506
Test:Validated on Hikey with Android-S
Signed-off-by: Vinayak Yadawad <vinayak.yadawad@broadcom.com>
Change-Id: Iaf95f6d635584f6df7c3866d5efde6b10db6a73e
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index a995f26..008ec08 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -1366,6 +1366,17 @@
changed = 1;
}
+#ifdef CONFIG_DRIVER_NL80211_BRCM
+ /* driver call for transition disable */
+ {
+ struct wpa_driver_associate_params params;
+
+ os_memset(¶ms, 0, sizeof(params));
+ params.td_policy = bitmap;
+ wpa_drv_update_connect_params(wpa_s, ¶ms, WPA_DRV_UPDATE_TD_POLICY);
+ }
+#endif /* CONFIG_DRIVER_NL80211_BRCM */
+
wpas_notify_transition_disable(wpa_s, ssid, bitmap);
if (!changed)