Reset CNT_CONSECUTIVE_CONNECTION_FAILURE after IP config success

CNT_CONSECUTIVE_CONNECTION_FAILURE is reset incorrectly for the
following cases
1) auth timeout followed by a local-generated disconnection
2) non-local-generate disconnection in the middle of connection attempt

The change is to reset this counter only after IP configuration success.

Test: atest com.android.server.wifi and manual test with a SAP which
always disconnects STA during 4-way HS.
Bug: 170431034

Change-Id: I8e3d3dbe0e6bf95a25aab3938ef079bf4e249104
2 files changed
tree: 211a3d0ee1fa13cb0fdbbb35b18d3b25b81b7094
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg