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

Commit 0740c766 authored by Rubin Xu's avatar Rubin Xu Committed by android-build-merger
Browse files

Merge "Patch incoming LinkProperties before it's visible to the outside" am:...

Merge "Patch incoming LinkProperties before it's visible to the outside" am: 7b625191 am: 2a4b62dd am: 2cf8f741
am: d1fb92df

Change-Id: Ibd5c615b9cb38664742e96327163bd970a38d848
parents 33e9e7d5 d1fb92df
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -4649,7 +4649,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
            // Ignore updates for disconnected networks
            return;
        }

        // newLp is already a defensive copy.
        newLp.ensureDirectlyConnectedRoutes();
        if (VDBG) {
            log("Update of LinkProperties for " + nai.name() +
                    "; created=" + nai.created +
@@ -4659,8 +4660,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
        synchronized (nai) {
            nai.linkProperties = newLp;
        }
        // msg.obj is already a defensive copy.
        nai.linkProperties.ensureDirectlyConnectedRoutes();
        if (nai.everConnected) {
            updateLinkProperties(nai, oldLp);
        }