am c06b1db2: Merge "Consider current EAP TLS configurations as \'valid\'" into klp-dev
* commit 'c06b1db22278f00ef55b2fff00bf9d905286d6e0': Consider current EAP TLS configurations as 'valid'
This commit is contained in:
@@ -355,7 +355,15 @@ public class WifiConfiguration implements Parcelable {
|
||||
*/
|
||||
public boolean isValid() {
|
||||
if (allowedKeyManagement.cardinality() > 1) {
|
||||
return false;
|
||||
if (allowedKeyManagement.cardinality() != 2) {
|
||||
return false;
|
||||
}
|
||||
if (allowedKeyManagement.get(KeyMgmt.WPA_EAP) == false) {
|
||||
return false;
|
||||
}
|
||||
if (allowedKeyManagement.get(KeyMgmt.IEEE8021X) == false) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Add more checks
|
||||
|
||||
Reference in New Issue
Block a user