am 2159927f: Merge "Fix handling in DisconnectingState" into ics-mr0

* commit '2159927f366fd8a617128df60865923e131cad7b':
  Fix handling in DisconnectingState
This commit is contained in:
Irfan Sheriff
2011-10-20 15:07:46 -07:00
committed by Android Git Automerger

View File

@@ -3043,9 +3043,14 @@ public class WifiStateMachine extends StateMachine {
deferMessage(message);
}
break;
/* Handle in DisconnectedState */
case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT:
/* If we get a SUPPLICANT_STATE_CHANGE_EVENT before NETWORK_DISCONNECTION_EVENT
* we have missed the network disconnection, transition to mDisconnectedState
* and handle the rest of the events there
*/
deferMessage(message);
handleNetworkDisconnect();
transitionTo(mDisconnectedState);
break;
default:
return NOT_HANDLED;