summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorHai Shalom <haishalom@google.com>2020-07-22 14:36:40 -0700
committerHai Shalom <haishalom@google.com>2020-07-22 23:31:04 +0000
commit27e757ab5d4c65462295b1a985eb823a8e1199d1 (patch)
treea299ae98c0b731b55837f5dc3567085cf97835ad /service
parentd55cade0f9240ba70fd0fc6ed5e7458375740646 (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
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) {