From 9e3b7b4461a23c3bf1ae861839eef4f2bade15d9 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Tue, 14 May 2019 09:15:25 -0700 Subject: ClientModeImpl: Move initializeProvisioner to boot completed Most of the wifi stack initialization occurs after boot completed event is received. Move PasspointManager#initializeProvisioner there as well. Bug: 126873469 Test: atest com.android.server.wifi Change-Id: I1a0250f0fbabe93ea273e753410cc8ab6240c669 --- service/java/com/android/server/wifi/ClientModeImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service') diff --git a/service/java/com/android/server/wifi/ClientModeImpl.java b/service/java/com/android/server/wifi/ClientModeImpl.java index c0ff441a7..8bfa54d07 100644 --- a/service/java/com/android/server/wifi/ClientModeImpl.java +++ b/service/java/com/android/server/wifi/ClientModeImpl.java @@ -3513,8 +3513,6 @@ public class ClientModeImpl extends StateMachine { break; case CMD_INITIALIZE: ok = mWifiNative.initialize(); - mPasspointManager.initializeProvisioner( - mWifiInjector.getWifiServiceHandlerThread().getLooper()); replyToMessage(message, message.what, ok ? SUCCESS : FAILURE); break; case CMD_BOOT_COMPLETED: @@ -3524,6 +3522,8 @@ public class ClientModeImpl extends StateMachine { if (!mWifiConfigManager.loadFromStore()) { Log.e(TAG, "Failed to load from config store"); } + mPasspointManager.initializeProvisioner( + mWifiInjector.getWifiServiceHandlerThread().getLooper()); registerNetworkFactory(); break; case CMD_SCREEN_STATE_CHANGED: -- cgit v1.2.3