diff options
author | Roshan Pius <rpius@google.com> | 2017-08-08 17:16:56 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-08-08 17:16:56 +0000 |
commit | 68eb30cc4e4d1af1dae499c7d865705c6528231d (patch) | |
tree | a110068ded6e91f28b42ebb800e4382d9c2f1024 /service | |
parent | d582d8801229bce8be8995afe8b544bc057ae238 (diff) | |
parent | 9ef40c234c4d9399f3c63e5fb30247e1019605fa (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.java | 8 |
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); } |