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

Commit 2a4b62dd 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: 7b625191

Change-Id: I032ba648ec0476ab8a02a710e2ae485ab4a590b8
parents a3658b0f 7b625191
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -4641,7 +4641,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 +
@@ -4651,8 +4652,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);
        }