Merge "Clean up synchronization"
This commit is contained in:
committed by
Android (Google) Code Review
commit
afb847a469
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user