Merge change 8855

* changes:
  Wifi: Make sure the interface is up before telling supplicant to start the driver.
This commit is contained in:
Android (Google) Code Review
2009-07-28 14:08:48 -07:00

View File

@@ -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;