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

Commit b58496b8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Wifi: wifi not connecting, once the APN gets disabled state"

parents 0d72477d 70ec9d88
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -398,6 +398,15 @@ class WifiConfigStore {
    boolean forgetNetwork(int netId) {
        if (VDBG) localLog("forgetNetwork", netId);
        if (mWifiNative.removeNetwork(netId)) {
            for(WifiConfiguration config : mConfiguredNetworks.values()) {
                if(config != null && config.status == Status.DISABLED) {
                    if(mWifiNative.enableNetwork(config.networkId, false)) {
                        config.status = Status.ENABLED;
                    } else {
                        loge("Enable network failed on " + config.networkId);
                    }
                }
            }
            mWifiNative.saveConfig();
            removeConfigAndSendBroadcastIfNeeded(netId);
            return true;