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:
Irfan Sheriff
2011-11-07 10:34:54 -08:00
parent 19c86cacb2
commit 9575a1bea1
3 changed files with 214 additions and 173 deletions

View File

@ -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();
}
/**