Fixed not to support seamless roaming for WPA AP
The seamless roaming support that we have currently is for SAE transition mode which uses WPA2.
but, DUT tried to connect AP using multiple AKM even if the AP is set as WPA-PSK-CCMP.
Before, fixed to support multiple AKMs only CCMP combinations.
https://partner-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/2246211
In addition to the change, this fix could prevent WPA APs from using multiple AKM features.
Bug: 254302283
Test: tested with TPlink Archer C7 AC1750
Signed-off-by: Dennis Jeon <dennis.jeon@broadcom.com>
Change-Id: I70d526693c1ac3b929a4f85ede040dd879b0ea98
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 4503ae9..05766b5 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -1909,7 +1909,8 @@
if ((wpa_s->key_mgmt & WPA_KEY_MGMT_CROSS_AKM_ROAM) &&
IS_CROSS_AKM_ROAM_KEY_MGMT(ssid->key_mgmt) &&
(wpa_s->group_cipher == WPA_CIPHER_CCMP) &&
- (wpa_s->pairwise_cipher == WPA_CIPHER_CCMP)) {
+ (wpa_s->pairwise_cipher == WPA_CIPHER_CCMP) &&
+ (wpa_s->wpa_proto == WPA_PROTO_RSN)) {
wpa_s->key_mgmt = WPA_KEY_MGMT_SAE | WPA_KEY_MGMT_PSK;
wpa_dbg(wpa_s, MSG_INFO,
"WPA: Updating to KEY_MGMT SAE+PSK for seamless roaming");