WifiStateMachine: ignore disconnect

WifiStateMachine allows tests to inject a disconnect by using the
CMD_DISCONNECT message.  This message is now ignored in the
disconnecting and disconnected states.  This would previously cause a
variety of failures depending on the timing due to the tests calling
disconnect before calling connect.  This caused scans to be cancelled
and tests to fail.

BUG: 30313886
TEST: Created new sl4a tests (still in development) that stress test wifi
startup and connections.  The specific failure is not seen with the
included changes. WiFi framework unit tests also pass.

Change-Id: I143a762f38fe3e4ecaf1be71b21553def3cfb239
1 file changed
tree: a6efc59f71ac6e07261d0328e14f275306c9ee98
  1. service/
  2. tests/