* commit '007c6c7d358fc617252da40c9ff214f55312c6f8': 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