am f376c837: Merge change 24805 into eclair

Merge commit 'f376c837ea9d5b89c668ff8306f2a404bed4ff05' into eclair-plus-aosp

* commit 'f376c837ea9d5b89c668ff8306f2a404bed4ff05':
  Don't init wifiChannels until after supplicant up
This commit is contained in:
Robert Greenwalt
2009-09-11 18:14:10 -07:00
committed by Android Git Automerger
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: