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

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

Merge "WifiConfiguration: Fix isEnterprise"

am: 9221c96a

Change-Id: I439205f4db4bfc292f084ea716014d64353c2885
parents 7554be1e 9221c96a
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