From 6ee4b5b504a2542b47befe5d6c5f9aaff9b40ed9 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Tue, 28 Jul 2009 14:04:08 -0700 Subject: 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 --- wifi/java/android/net/wifi/WifiStateTracker.java | 1 + 1 file changed, 1 insertion(+) (limited to 'wifi') 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; -- cgit v1.1