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

Commit c06b1db2 authored by Vinit Deshapnde's avatar Vinit Deshapnde Committed by Android (Google) Code Review
Browse files

Merge "Consider current EAP TLS configurations as 'valid'" into klp-dev

parents c8d19b89 3b25f516
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;