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