ClientModeImpl: Handle disconnection event in DisconnectingState

Since DisconnectedState no longer handles NETWORK_DISCONNECTION or
SUPPLICANT_STATE_CHANGE events, handle these events directly in
DisconnectingState. Otherwise WifiInfo state is not correctly updated.

Also, move Wifinfo state reset to exit of ConnectingState instead
of exit of ConnectModeState.

Note: This is a temporary fix for the cuttlefish test failure. Long term
goal is to remove the Disconnectingstate.

Bug: 156219024
Test: atest com.android.server.wifi
Change-Id: I8a7d64f1428761d928922d78aff998b3ad781526
2 files changed
tree: b63c0c36a91fec9467ed3a42ce3ff83dce3c50d6
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg