owe: enable ptk woraround for OWE backward compatibility
Seleting KDF hash algorithm based on length of the prime breaks the backwards
compatibility when using group 20/21.
Bug: 243100147
Test: connect to OWE AP
Change-Id: I349e443f9677e86dd1d3ae46f1efc7d3c0d0759c
diff --git a/wpa_supplicant/aidl/sta_network.cpp b/wpa_supplicant/aidl/sta_network.cpp
index fe4a760..1b72171 100644
--- a/wpa_supplicant/aidl/sta_network.cpp
+++ b/wpa_supplicant/aidl/sta_network.cpp
@@ -2160,6 +2160,7 @@
if (key_mgmt_mask & WPA_KEY_MGMT_OWE) {
// Do not allow to connect to Open network when OWE is selected
wpa_ssid->owe_only = 1;
+ wpa_ssid->owe_ptk_workaround = 1;
}
wpa_ssid->key_mgmt = key_mgmt_mask;
wpa_printf(MSG_MSGDUMP, "key_mgmt: 0x%x", wpa_ssid->key_mgmt);