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

Commit 32e45ef3 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 3dcd8b04 2c00e686
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -338,6 +338,13 @@ 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) {
                       config.status = Status.ENABLED;
                  } else {
                       loge("Enable network failed on " + config.networkId);
                  }
            }
            mWifiNative.saveConfig();
            removeConfigAndSendBroadcastIfNeeded(netId);
            return true;