diff options
author | Mike Lockwood <lockwood@android.com> | 2009-07-28 14:04:08 -0700 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-07-28 14:05:55 -0700 |
commit | 6ee4b5b504a2542b47befe5d6c5f9aaff9b40ed9 (patch) | |
tree | 0fa2cf34860f50f9cd4687eee11c670bedbc3651 /wifi | |
parent | 7a45a2ec06e309b029bfb37ba1e783640560e80e (diff) | |
download | frameworks_base-6ee4b5b504a2542b47befe5d6c5f9aaff9b40ed9.zip frameworks_base-6ee4b5b504a2542b47befe5d6c5f9aaff9b40ed9.tar.gz frameworks_base-6ee4b5b504a2542b47befe5d6c5f9aaff9b40ed9.tar.bz2 |
Wifi: Make sure the interface is up before telling supplicant to start the driver.
This fixes a problem that resulted in the interface not being up when resuming
an authenticated connection.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/WifiStateTracker.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateTracker.java b/wifi/java/android/net/wifi/WifiStateTracker.java index 12abce5..083cda3 100644 --- a/wifi/java/android/net/wifi/WifiStateTracker.java +++ b/wifi/java/android/net/wifi/WifiStateTracker.java @@ -1467,6 +1467,7 @@ public class WifiStateTracker extends NetworkStateTracker { public synchronized boolean restart() { if (mRunState == RUN_STATE_STOPPED) { mRunState = RUN_STATE_STARTING; + resetInterface(true); return WifiNative.startDriverCommand(); } else if (mRunState == RUN_STATE_STOPPING) { mRunState = RUN_STATE_STARTING; |