summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Quattlebaum <rquattle@google.com>2017-10-11 18:33:13 -0700
committerRobert Quattlebaum <rquattle@google.com>2017-10-12 18:19:45 +0000
commit9fdee47e65aa942067b636cfbace1739702099a8 (patch)
tree6c868585e22b5fbc00be125eed8e45d6b963f010
parentece938e2a9aff18b430634dea15240f410001b53 (diff)
downloadlowpan-9fdee47e65aa942067b636cfbace1739702099a8.tar.gz
LowpanService: Reconstitute mIpManager every time we attach
I noticed that we only seem to be making it past the ObtainingIpState if it is the first time we have entered the state. After successfully getting past this state once, if we bring the interface down and then bring it back up we will be stuck in that state (and, thus, have no connectivity). Forcing IpManager to be reconstituted with every attempt fixes the problem. Bug: b/67718802 Test: manual Change-Id: Idb06068c721c2e432c9936d6a00b21ab8ea6febc
-rw-r--r--service/java/com/android/server/lowpan/LowpanInterfaceTracker.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/service/java/com/android/server/lowpan/LowpanInterfaceTracker.java b/service/java/com/android/server/lowpan/LowpanInterfaceTracker.java
index 83522c9..69842c2 100644
--- a/service/java/com/android/server/lowpan/LowpanInterfaceTracker.java
+++ b/service/java/com/android/server/lowpan/LowpanInterfaceTracker.java
@@ -326,6 +326,8 @@ class LowpanInterfaceTracker extends StateMachine {
public void enter() {
shutdownNetworkAgent();
mNetworkInfo.setIsAvailable(true);
+
+ mIpManager.stop();
}
@Override