summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorHai Shalom <haishalom@google.com>2020-07-22 14:36:40 -0700
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-07-23 23:04:12 +0000
commit41a7999299a1c84652fbeddf98edb863e82aabf6 (patch)
treee4a89296e6ea936cc816e667443dd76024bdb7f9 /service
parent1ec423fa5ec67a78f91287e49a4d76a76a3d0289 (diff)
[WPA3-Enterprise] Fix connection issues to ECDSA networks
Fix connection issues with ECDSA networks. The initialization of the Suite-B ciphers was not performed due to a bug in the logic that checked if KeyStore is required for the connection. Bug: 161570436 Test: atest WifiKeyStoreTest Test: Connect to WPA3-Enterprise 192-bit ECDSA and RSA networks Test: Connect to WPA2-Enterprise network Change-Id: I34489a69f91802cc9bf0c64ae3734ae237ead47b Merged-In: I34489a69f91802cc9bf0c64ae3734ae237ead47b (cherry picked from commit 27e757ab5d4c65462295b1a985eb823a8e1199d1)
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiKeyStore.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiKeyStore.java b/service/java/com/android/server/wifi/WifiKeyStore.java
index d59dd1d47..70daa0d55 100644
--- a/service/java/com/android/server/wifi/WifiKeyStore.java
+++ b/service/java/com/android/server/wifi/WifiKeyStore.java
@@ -65,7 +65,9 @@ public class WifiKeyStore {
// Certificate and private key management for EnterpriseConfig
private static boolean needsKeyStore(WifiEnterpriseConfig config) {
- return (config.getClientCertificate() != null || config.getCaCertificate() != null);
+ return (config.getClientCertificate() != null || config.getCaCertificate() != null
+ || config.getCaCertificateAlias() != null
+ || config.getClientCertificateAlias() != null);
}
private static boolean isHardwareBackedKey(Key key) {