Convert soft ap config store to state machine
- Create thread when needed - asynchronous interaction with wifi state machine Bug: 5587391 Change-Id: Ie6d01b5a6b398a3fa12c384920a473e242443131
This commit is contained in:
@ -619,12 +619,7 @@ public class WifiService extends IWifiManager.Stub {
|
||||
*/
|
||||
public WifiConfiguration getWifiApConfiguration() {
|
||||
enforceAccessPermission();
|
||||
if (mWifiStateMachineChannel != null) {
|
||||
return mWifiStateMachine.syncGetWifiApConfiguration(mWifiStateMachineChannel);
|
||||
} else {
|
||||
Slog.e(TAG, "mWifiStateMachineChannel is not initialized");
|
||||
return null;
|
||||
}
|
||||
return mWifiStateMachine.syncGetWifiApConfiguration();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user