diff options
author | Robert Greenwalt <robdroid@android.com> | 2009-09-11 17:23:35 -0700 |
---|---|---|
committer | Robert Greenwalt <robdroid@android.com> | 2009-09-11 17:23:35 -0700 |
commit | 7c9bf7caa2936e8b76598be9fffea980d81c61d3 (patch) | |
tree | d474c5edac25a48c986f913aea99e66fa4a89951 /wifi/java/android/net | |
parent | d68781ace179e19b70120411baf307104683fa4b (diff) | |
download | frameworks_base-7c9bf7caa2936e8b76598be9fffea980d81c61d3.zip frameworks_base-7c9bf7caa2936e8b76598be9fffea980d81c61d3.tar.gz frameworks_base-7c9bf7caa2936e8b76598be9fffea980d81c61d3.tar.bz2 |
Don't init wifiChannels until after supplicant up
The supplicant can take up to 15 seconds to start - setting the number of wifi channels
immediately after requested wifi start often will fail.
Changed to set the number of channels when the supplicant is reported as alive.
bug:2083601
Diffstat (limited to 'wifi/java/android/net')
-rw-r--r-- | wifi/java/android/net/wifi/WifiStateTracker.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateTracker.java b/wifi/java/android/net/wifi/WifiStateTracker.java index fa24a98..9a11404 100644 --- a/wifi/java/android/net/wifi/WifiStateTracker.java +++ b/wifi/java/android/net/wifi/WifiStateTracker.java @@ -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: |