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

Commit d98aba97 authored by Roshan Pius's avatar Roshan Pius Committed by android-build-merger
Browse files

Merge "WifiConfiguration: Fix isEnterprise" am: 9221c96a am: e597198f am: 478bb2b4

am: d74f710e

Change-Id: I0f66eafb5129308674c0eceb4b8699bb4a32dd88
parents c0758180 d74f710e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1407,8 +1407,10 @@ public class WifiConfiguration implements Parcelable {
     * @hide
     */
    public boolean isEnterprise() {
        return allowedKeyManagement.get(KeyMgmt.WPA_EAP) ||
            allowedKeyManagement.get(KeyMgmt.IEEE8021X);
        return (allowedKeyManagement.get(KeyMgmt.WPA_EAP)
                || allowedKeyManagement.get(KeyMgmt.IEEE8021X))
                && enterpriseConfig != null
                && enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE;
    }

    @Override