Merge "Patch incoming LinkProperties before it's visible to the outside"
am: 7b625191e2 Change-Id: I032ba648ec0476ab8a02a710e2ae485ab4a590b8
This commit is contained in:
@@ -4641,7 +4641,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 +
|
||||||
@@ -4651,8 +4652,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