Merge "Clean up synchronization"

This commit is contained in:
Irfan Sheriff
2011-12-12 15:35:25 -08:00
committed by Android (Google) Code Review
3 changed files with 210 additions and 181 deletions

View File

@ -676,7 +676,12 @@ public class WifiService extends IWifiManager.Stub {
*/
public List<WifiConfiguration> getConfiguredNetworks() {
enforceAccessPermission();
return mWifiStateMachine.syncGetConfiguredNetworks();
if (mWifiStateMachineChannel != null) {
return mWifiStateMachine.syncGetConfiguredNetworks(mWifiStateMachineChannel);
} else {
Slog.e(TAG, "mWifiStateMachineChannel is not initialized");
return null;
}
}
/**