Merge "Sync up state with supplicant at start"

This commit is contained in:
Irfan Sheriff
2012-01-11 20:33:11 -08:00
committed by Android (Google) Code Review

View File

@@ -2541,6 +2541,10 @@ public class WifiStateMachine extends StateMachine {
} else {
WifiNative.setScanResultHandling(CONNECT_MODE);
WifiNative.reconnect();
// Status pulls in the current supplicant state and network connection state
// events over the monitor connection. This helps framework sync up with
// current supplicant state
WifiNative.status();
transitionTo(mDisconnectedState);
}
}