summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorGuang Zhu <guangzhu@google.com>2017-08-05 00:05:17 +0000
committerGuang Zhu <guangzhu@google.com>2017-08-05 00:05:17 +0000
commit80061fc40ae7e1ead239364eeb1e3ea0d88bcc23 (patch)
treef3e26c2756acba40ffd18eaed4387d832dcaee0b /service
parent899b14464fc6591010a5893142b470a466598f96 (diff)
Revert "HalDeviceManager: Get IWifi proxy immediately"
Bug: 64399946 Bug: 64226605 This reverts commit 899b14464fc6591010a5893142b470a466598f96. Change-Id: I2af550600529835fa78e7011f1bbedd056140d46
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/HalDeviceManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/java/com/android/server/wifi/HalDeviceManager.java b/service/java/com/android/server/wifi/HalDeviceManager.java
index bcc0348a8..4382c8126 100644
--- a/service/java/com/android/server/wifi/HalDeviceManager.java
+++ b/service/java/com/android/server/wifi/HalDeviceManager.java
@@ -532,7 +532,6 @@ public class HalDeviceManager {
private void initializeInternal() {
initIServiceManagerIfNecessary();
- initIWifiIfNecessary();
}
private void teardownInternal() {
@@ -562,7 +561,9 @@ public class HalDeviceManager {
Log.d(TAG, "IWifi registration notification: fqName=" + fqName
+ ", name=" + name + ", preexisting=" + preexisting);
synchronized (mLock) {
+ mWifi = null; // get rid of old copy!
initIWifiIfNecessary();
+ stopWifi(); // just in case
}
}
};
@@ -672,8 +673,7 @@ public class HalDeviceManager {
mWifi = null;
return;
}
- // Stopping wifi just in case. This would also trigger the status callback.
- stopWifi();
+ managerStatusListenerDispatch();
} catch (RemoteException e) {
Log.e(TAG, "Exception while operating on IWifi: " + e);
}