hidl/1.3: Add missing check of SAE key management.
While connecting to a SAE supported network, add WPA_KEY_MGMT_FT_SAE
in network configuration's allowed key management.
Bug: 150660440
Bug: 150405204
Test: Manual-Basic Wifi sanity testing.
Change-Id: I4ac8786318de5480a74e3d8c323a5a77bf17d280
diff --git a/wpa_supplicant/hidl/1.3/sta_network.cpp b/wpa_supplicant/hidl/1.3/sta_network.cpp
index 925a093..5f3b491 100644
--- a/wpa_supplicant/hidl/1.3/sta_network.cpp
+++ b/wpa_supplicant/hidl/1.3/sta_network.cpp
@@ -2450,7 +2450,8 @@
if (res == 0) {
#ifdef CONFIG_IEEE80211R
#ifdef CONFIG_SAE
- if (capa.key_mgmt_iftype[WPA_IF_STATION] & WPA_DRIVER_CAPA_KEY_MGMT_FT_SAE) {
+ if ((key_mgmt_mask & WPA_KEY_MGMT_SAE) &&
+ (capa.key_mgmt_iftype[WPA_IF_STATION] & WPA_DRIVER_CAPA_KEY_MGMT_FT_SAE)) {
key_mgmt_mask |= WPA_KEY_MGMT_FT_SAE;
}
#endif