Merge "Fix WPA3 Suite-B parameters in WifiConfiguration#setSecurityParams" into rvc-dev
This commit is contained in:
@@ -503,6 +503,8 @@ public class WifiConfiguration implements Parcelable {
|
||||
break;
|
||||
case SECURITY_TYPE_EAP_SUITE_B:
|
||||
allowedProtocols.set(WifiConfiguration.Protocol.RSN);
|
||||
allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_EAP);
|
||||
allowedKeyManagement.set(WifiConfiguration.KeyMgmt.IEEE8021X);
|
||||
allowedKeyManagement.set(WifiConfiguration.KeyMgmt.SUITE_B_192);
|
||||
allowedPairwiseCiphers.set(WifiConfiguration.PairwiseCipher.GCMP_256);
|
||||
allowedGroupCiphers.set(WifiConfiguration.GroupCipher.GCMP_256);
|
||||
|
||||
@@ -456,6 +456,8 @@ public class WifiConfigurationTest {
|
||||
config.setSecurityParams(SECURITY_TYPE_EAP_SUITE_B);
|
||||
|
||||
assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SUITE_B_192));
|
||||
assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.WPA_EAP));
|
||||
assertTrue(config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.IEEE8021X));
|
||||
assertTrue(config.allowedPairwiseCiphers.get(WifiConfiguration.PairwiseCipher.GCMP_256));
|
||||
assertTrue(config.allowedGroupCiphers.get(WifiConfiguration.GroupCipher.GCMP_256));
|
||||
assertTrue(config.allowedGroupManagementCiphers
|
||||
|
||||
Reference in New Issue
Block a user