Handle disconnection in the middle of connection attempt
Add the WifiHealthMonitor detection logic and stats for the non-local-generated disconnection in the middle of a connection.
Also fix the typo of CNT_CONNECTION_FAILURE in WifiScoreCard.PerNetwork.mergeConnectionStats()
BssidBlocklistMonitor.handleBssidConnectionFailure() will be enabled
later for REASON_NONLOCAL_DISCONNECT_CONNECTING once it is fully tested.
Updated-PDD: TRUE
Bug: 170431034
Bug: 174166637
Test: atest com.android.server.wifi
Test: manual test with a SAP which always disconnects STA during 4-way HS.
Change-Id: Icfa57647c9a639f97340b0f42aef0a0e77215c93
15 files changed