Sync up state with supplicant at start

Bug: 5534039
Change-Id: I70b3e03b3039877b3c64167d0d246346f9131fc6
This commit is contained in:
Irfan Sheriff
2012-01-11 16:54:09 -08:00
parent 044a0b8ae5
commit 576db76106

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);
}
}