Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 007c6c7d authored by Vinit Deshapnde's avatar Vinit Deshapnde Committed by Android Git Automerger
Browse files

am c06b1db2: Merge "Consider current EAP TLS configurations as \'valid\'" into klp-dev

* commit 'c06b1db2':
  Consider current EAP TLS configurations as 'valid'
parents 74d21364 c06b1db2
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -355,8 +355,16 @@ public class WifiConfiguration implements Parcelable {
     */
    public boolean isValid() {
        if (allowedKeyManagement.cardinality() > 1) {
            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
        return true;