Merge "Patch incoming LinkProperties before it's visible to the outside" am: 7b625191e2 am: 2f36b7afbb
am: 2cf8f74180 Change-Id: Ic82526773116db3b80449cb0241a1f80934b3d55
This commit is contained in:
@@ -4649,7 +4649,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
// Ignore updates for disconnected networks
|
// Ignore updates for disconnected networks
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// newLp is already a defensive copy.
|
||||||
|
newLp.ensureDirectlyConnectedRoutes();
|
||||||
if (VDBG) {
|
if (VDBG) {
|
||||||
log("Update of LinkProperties for " + nai.name() +
|
log("Update of LinkProperties for " + nai.name() +
|
||||||
"; created=" + nai.created +
|
"; created=" + nai.created +
|
||||||
@@ -4659,8 +4660,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
synchronized (nai) {
|
synchronized (nai) {
|
||||||
nai.linkProperties = newLp;
|
nai.linkProperties = newLp;
|
||||||
}
|
}
|
||||||
// msg.obj is already a defensive copy.
|
|
||||||
nai.linkProperties.ensureDirectlyConnectedRoutes();
|
|
||||||
if (nai.everConnected) {
|
if (nai.everConnected) {
|
||||||
updateLinkProperties(nai, oldLp);
|
updateLinkProperties(nai, oldLp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user