summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2017-08-08 17:16:56 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-08-08 17:16:56 +0000
commit68eb30cc4e4d1af1dae499c7d865705c6528231d (patch)
treea110068ded6e91f28b42ebb800e4382d9c2f1024 /service
parentd582d8801229bce8be8995afe8b544bc057ae238 (diff)
parent9ef40c234c4d9399f3c63e5fb30247e1019605fa (diff)
Merge "RELAND: HalDeviceManager: Get IWifi proxy immediately" into oc-dr1-dev
am: 9ef40c234c Change-Id: I020ab94920c37cb9af4bc2103a227f7bf0737015
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/HalDeviceManager.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/service/java/com/android/server/wifi/HalDeviceManager.java b/service/java/com/android/server/wifi/HalDeviceManager.java
index 4382c8126..d6009c709 100644
--- a/service/java/com/android/server/wifi/HalDeviceManager.java
+++ b/service/java/com/android/server/wifi/HalDeviceManager.java
@@ -532,6 +532,9 @@ public class HalDeviceManager {
private void initializeInternal() {
initIServiceManagerIfNecessary();
+ if (isSupportedInternal()) {
+ initIWifiIfNecessary();
+ }
}
private void teardownInternal() {
@@ -561,9 +564,7 @@ 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
}
}
};
@@ -673,7 +674,8 @@ public class HalDeviceManager {
mWifi = null;
return;
}
- managerStatusListenerDispatch();
+ // Stopping wifi just in case. This would also trigger the status callback.
+ stopWifi();
} catch (RemoteException e) {
Log.e(TAG, "Exception while operating on IWifi: " + e);
}