Merge change 24805 into eclair

* changes:
  Don't init wifiChannels until after supplicant up
This commit is contained in:
Android (Google) Code Review
2009-09-11 21:08:38 -04:00
2 changed files with 3 additions and 7 deletions

View File

@@ -374,13 +374,6 @@ public class WifiService extends IWifiManager.Stub {
}
setWifiEnabledState(eventualWifiState, uid);
/*
* Initialize the number of allowed radio channels if Wi-Fi is being turned on.
*/
if (enable) {
mWifiStateTracker.setNumAllowedChannels();
}
return true;
}

View File

@@ -784,6 +784,9 @@ public class WifiStateTracker extends NetworkStateTracker {
mBluetoothA2dp = new BluetoothA2dp(mContext);
}
checkIsBluetoothPlaying();
// initialize this after the supplicant is alive
setNumAllowedChannels();
break;
case EVENT_SUPPLICANT_DISCONNECT: