Use stored available SAP channels when driver isn't up
Available SAP channels cannot be queried if the driver isn't up and
SAP hasn't started since boot, causing
WifiManager.getUsableChannels() to return an empty list. Since apps like
Settings may need to rely on getUsableChannels() to show band
availability, store the available SAP channels whenever the driver
country code changes, and return the stored channels when the driver
isn't up.
Bug: 246244842
Test: atest WifiServiceImplTest
Change-Id: Iefe910710846e97009bfa74f6ba2d8d884ed4727
3 files changed