Perform partial initial scan with reduced channels
This commit adds an optional feature to perform a fast initial scanning
with a reduced number of channels from the connected channel history.
The maximum number of channels in the reduced scan, and the maximum age
for the history are configurable.
Bug: 141893780
Test: atest com.android.server.wifi
Change-Id: I93081524b9fee6db13cfc989533cf38f6d270874
diff --git a/service/res/values/config.xml b/service/res/values/config.xml
index 460dce4..d6f2532 100644
--- a/service/res/values/config.xml
+++ b/service/res/values/config.xml
@@ -161,6 +161,16 @@
<!-- Boolean indicating associated network selection is allowed -->
<bool translatable="false" name="config_wifi_framework_enable_associated_network_selection">true</bool>
+ <!-- Boolean indicating performing a partial initial scan is enabled -->
+ <bool translatable="false" name="config_wifiEnablePartialInitialScan">false</bool>
+
+ <!-- Integer for maximum number of channels to use in initial partial scan -->
+ <integer translatable="false" name="config_wifiInitialPartialScanChannelMaxCount">10</integer>
+
+ <!-- Integer for maximum age for scan results used to identify channels for partial initial
+ scan in minutes -->
+ <integer translatable="false" name="config_wifiInitialPartialScanChannelCacheAgeMins">14400</integer>
+
<!-- Boolean indicating whether single radio chain scan results are to be used for network selection -->
<bool translatable="false" name="config_wifi_framework_use_single_radio_chain_scan_results_network_selection">true</bool>