Loading wifi/java/android/net/wifi/WifiConfigStore.java +9 −0 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
wifi/java/android/net/wifi/WifiConfigStore.java +9 −0 Original line number Diff line number Diff line Loading @@ -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; Loading