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

Commit 9bd938a6 authored by Vinit Deshpande's avatar Vinit Deshpande Committed by Android Partner Code Review
Browse files

Merge "Improve passpoint configuration validation" into m-wireless-dev

parents 4190762d 04444427
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -926,13 +926,18 @@ public class WifiConfiguration implements Parcelable {
            }
        }

        if (FQDN != null) {
            /* must have a providerFriendlyName */
            if (providerFriendlyName == null) {
        if (TextUtils.isEmpty(FQDN) == false) {
            /* this is passpoint configuration; it must not have an SSID */
            if (TextUtils.isEmpty(SSID) == false) {
                return false;
            }
            /* this is passpoint configuration; it must have a providerFriendlyName */
            if (TextUtils.isEmpty(providerFriendlyName)) {
                return false;
            }
            /* this is passpoint configuration; it must have enterprise config */
            if (enterpriseConfig == null) {
            if (enterpriseConfig == null
                    || enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.NONE ) {
                return false;
            }
        }