Skip to content
Commit 85bbc6e0 authored by Quang Luong's avatar Quang Luong
Browse files

Increase ScanResult cache eviction timeout for failed/aborted scans

Currently ScanResults are evicted from WifiTracker's cache when they
are more than 15 seconds old. Since scans are conducted every 10
seconds, one aborted scan will cause no fresh scans to be seen until
20 seconds later, resulting in all scans to be evicted and the
wifi-picker completely emptying.

This change doubles the eviction timeout to 30 seconds if the last
scan was aborted, avoiding this case.

Bug: 113132408
Test: atest WifiTrackerTest
Change-Id: I2e3aad3a1470f52c3d87e657262a2c4de1bd2418
parent c27024d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment