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

Commit 44113ba3 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Remove reload config for priority change

Bug: 2467689
Change-Id: Icd3bb17f5b794282219dd410cb56888d10130281
parent 247c065a
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -959,8 +959,7 @@ public class WifiService extends IWifiManager.Stub {
         */
        int netId = config.networkId;
        boolean newNetwork = netId == -1;
        boolean doReconfig;
        int currentPriority;
        boolean doReconfig = false;
        // networkId of -1 means we want to create a new network
        synchronized (mWifiStateTracker) {
            if (newNetwork) {
@@ -972,17 +971,6 @@ public class WifiService extends IWifiManager.Stub {
                    return -1;
                }
                doReconfig = true;
            } else {
                String priorityVal = mWifiStateTracker.getNetworkVariable(
                                            netId, WifiConfiguration.priorityVarName);
                currentPriority = -1;
                if (!TextUtils.isEmpty(priorityVal)) {
                    try {
                        currentPriority = Integer.parseInt(priorityVal);
                    } catch (NumberFormatException ignore) {
                    }
                }
                doReconfig = currentPriority != config.priority;
            }
            mNeedReconfig = mNeedReconfig || doReconfig;
        }