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

Commit d566a905 authored by Arif Hussain's avatar Arif Hussain Committed by Arif Hussain
Browse files

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

This reverts commit 2c00e686

Change-Id: If29b9b48b01f08946683f4f3805fa71cbd7f498b
CRs-fixed: 496165
parent 25496c2e
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -398,13 +398,6 @@ 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;