Latch scan rssi value during connection attempt

Some connection failures may happen a long while after initial scan and connection attempt, e.g., authentication timeout. For these cases, it will be too late to check scan RSSI timestamp during the failure time especially when scanValidTime is set to a small value.  The fix is to check scan rssi timestamp and latch its value only during the initial connection attempt.

Bug: 169294324
Test: atest com.android.server.wifi
Change-Id: I68f8189645858a8b13b960199e959a1e1444c5b3
1 file changed
tree: d0e56b6f84a7d8687ff38907c9377da5af10ce8e
  1. apex/
  2. service/
  3. metrics_pdd_hook.py
  4. PREUPLOAD.cfg