Reset scan restart counter upon successful scan

We have a logic in WifiConnectivityManager to restart failed scans up to
5 times, but we are not currently resetting the counter for failed scan
when we successfully complete a scan. This is leading to some failed
scan requests getting less than the expected number of retries.

Bug: 129667662
Test: unit tests
Change-Id: Icd1b0c23e698d790c218f22dbf28d021c5255005
2 files changed
tree: 2c5687f686d84c13e5b0fe0935e979b4374e00be
  1. service/
  2. PREUPLOAD.cfg