Add exponential backoff on the network level
Use the number of BSSIDs in the BSSID blocklist to determine how long we
should temporarily disable networks.
This check to re-enable networks is done every time before network
selection:
- if the elapsed time from now to the time the network was disabled is
greater than or equal to a timeout then re-enable the network.
The timeout calculated based on how many BSSIDs are in the BSSID
blocklist:
- 0 BSSID = 0ms (re-enable immediately)
- 1 BSSID = 5 minutes
- 2 BSSIDs = 10 minutes
- 3 BSSIDS = 20 minutes
...
Bug: 139287182
Test: atest FrameworksWifiTests
Change-Id: I009c5410898b09045b42adf4a1f48c05a268fba3
4 files changed