Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2019 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <!-- These resources are around just to allow their values to be customized |
| 18 | for different hardware and product builds. Do not translate. |
| 19 | |
| 20 | NOTE: The naming convention is "config_camelCaseValue". Some legacy |
| 21 | entries do not follow the convention, but all new entries should. --> |
| 22 | |
| 23 | <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> |
Ahmed ElArabawy | 6921b85 | 2019-12-09 16:20:49 -0800 | [diff] [blame] | 24 | <!-- boolean indicating whether the WiFi chipset has 5GHz band support. |
| 25 | Note: This config is replacing the config_wifi_dual_band_support |
| 26 | since more bands may now be supported (such as 6GHz), the naming dual_band |
| 27 | is no longer indicative, and a separate config now exists for each band --> |
| 28 | <bool translatable="false" name ="config_wifi5ghzSupport">false</bool> |
| 29 | |
| 30 | <!-- boolean indicating whether the WiFi chipset has 6GHz band support --> |
| 31 | <bool translatable="false" name ="config_wifi6ghzSupport">false</bool> |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 32 | |
Ahmed ElArabawy | 6a44f64 | 2020-01-16 19:10:45 -0800 | [diff] [blame] | 33 | <!-- Indicates that 11ax mode is supported on this device |
| 34 | Note that if this flag is set to true, then 11ax is assumed to be supported. |
| 35 | However, if it is left to the default value of false, the 11ax support will |
| 36 | be checked via NL80211 interface --> |
| 37 | <bool translatable="false" name="config_wifi11axSupportOverride">false</bool> |
| 38 | |
Kai Shi | c68b442 | 2020-04-10 17:07:25 -0700 | [diff] [blame] | 39 | <!-- Indicates whether to enable overriding the max number of spatial stream supported by the device |
| 40 | If true, config_wifiFrameworkMaxNumSpatialStreamDeviceOverrideValue |
| 41 | will be used to override the max number of spatial stream supported by the device. |
| 42 | If false, it will be left to WifiCond to derive the value from NL80211 interface --> |
| 43 | <bool translatable="false" name="config_wifiFrameworkMaxNumSpatialStreamDeviceOverrideEnable">true</bool> |
| 44 | <integer translatable="false" name="config_wifiFrameworkMaxNumSpatialStreamDeviceOverrideValue">2</integer> |
| 45 | |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 46 | <!-- Boolean indicating whether 802.11r Fast BSS Transition is enabled on this platform --> |
| 47 | <bool translatable="false" name="config_wifi_fast_bss_transition_enabled">false</bool> |
| 48 | |
| 49 | <!-- Device type information conforming to Annex B format in WiFi Direct specification. |
| 50 | The default represents a dual-mode smartphone --> |
| 51 | <string translatable="false" name="config_wifi_p2p_device_type">10-0050F204-5</string> |
| 52 | |
| 53 | <!-- Boolean indicating whether the wifi chipset supports background scanning mechanism. |
| 54 | This mechanism allows the host to remain in suspend state and the dongle to actively |
| 55 | scan and wake the host when a configured SSID is detected by the dongle. This chipset |
| 56 | capability can provide power savings when wifi needs to be always kept on. --> |
| 57 | <bool translatable="false" name="config_wifi_background_scan_support">false</bool> |
| 58 | |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 59 | <!-- Boolean indicating whether or not to revert to default country code when cellular |
| 60 | radio is unable to find any MCC information to infer wifi country code from --> |
| 61 | <bool translatable="false" name="config_wifi_revert_country_code_on_cellular_loss">false</bool> |
| 62 | |
| 63 | <!-- Integer size limit, in KB, for a single WifiLogger ringbuffer, in default logging mode --> |
| 64 | <integer translatable="false" name="config_wifi_logger_ring_buffer_default_size_limit_kb">32</integer> |
| 65 | |
| 66 | <!-- Integer size limit, in KB, for a single WifiLogger ringbuffer, in verbose logging mode --> |
| 67 | <integer translatable="false" name="config_wifi_logger_ring_buffer_verbose_size_limit_kb">1024</integer> |
| 68 | |
| 69 | <!-- Array indicating wifi fatal firmware alert error code list from driver --> |
| 70 | <integer-array translatable="false" name="config_wifi_fatal_firmware_alert_error_code_list"> |
| 71 | <!-- Example: |
| 72 | <item>0</item> |
| 73 | <item>1</item> |
| 74 | <item>2</item> |
| 75 | --> |
| 76 | </integer-array> |
| 77 | |
| 78 | <!-- Boolean indicating whether or not wifi should turn off when emergency call is made --> |
| 79 | <bool translatable="false" name="config_wifi_turn_off_during_emergency_call">false</bool> |
| 80 | |
Michael Plass | ee541ac | 2019-12-18 15:12:40 -0800 | [diff] [blame] | 81 | <!-- Parameters for controlling network selection by the framework --> |
| 82 | |
| 83 | <!-- The ratio of the next two parameters is the multiplier that converts the estimated |
| 84 | throughput in Mbps to score points. --> |
| 85 | <integer translatable="false" name="config_wifiFrameworkThroughputBonusNumerator">120</integer> |
| 86 | <integer translatable="false" name="config_wifiFrameworkThroughputBonusDenominator">433</integer> |
| 87 | |
| 88 | <!-- Maximum contribution (in score points) due to the estimated throughput. --> |
Kai Shi | b1d4697 | 2020-02-06 10:03:12 -0800 | [diff] [blame] | 89 | <integer translatable="false" name="config_wifiFrameworkThroughputBonusLimit">320</integer> |
Michael Plass | ee541ac | 2019-12-18 15:12:40 -0800 | [diff] [blame] | 90 | |
| 91 | <!-- The default values chosen here establish four non-overlapping categories: |
| 92 | saved, unmetered |
| 93 | unsaved, unmetered |
| 94 | saved, metered |
| 95 | unsaved, metered |
| 96 | These values can be reduced to allow overlapping between categories. --> |
| 97 | <integer translatable="false" name="config_wifiFrameworkSavedNetworkBonus">500</integer> |
| 98 | <integer translatable="false" name="config_wifiFrameworkUnmeteredNetworkBonus">1000</integer> |
Kai Shi | e30a339 | 2020-04-10 16:18:14 -0700 | [diff] [blame] | 99 | <!-- Integer specifying the minimum bonus for current network --> |
| 100 | <integer translatable="false" name="config_wifiFrameworkCurrentNetworkBonusMin">20</integer> |
| 101 | <!-- Integer specifying the percent bonus for current network. The percent is applied to |
| 102 | the sum of rssi base score and throughput score--> |
| 103 | <integer translatable="false" name="config_wifiFrameworkCurrentNetworkBonusPercent">20</integer> |
Kai Shi | 7ac44dc | 2020-05-20 14:54:16 -0700 | [diff] [blame] | 104 | <integer translatable="false" name="config_wifiFrameworkSecureNetworkBonus">40</integer> |
Michael Plass | ee541ac | 2019-12-18 15:12:40 -0800 | [diff] [blame] | 105 | |
Michael Plass | 0588d96 | 2020-03-16 13:36:23 -0700 | [diff] [blame] | 106 | <!-- The duration in minutes to strongly favor the last-selected network over other options. --> |
| 107 | <integer translatable="false" name="config_wifiFrameworkLastSelectionMinutes">480</integer> |
Michael Plass | ee541ac | 2019-12-18 15:12:40 -0800 | [diff] [blame] | 108 | |
Kai Shi | 50148c4 | 2019-11-25 18:10:54 -0800 | [diff] [blame] | 109 | <!-- Integer specifying the min packet Tx/Rx rates in packets per second to be considered |
| 110 | active traffic so that network selection and scan could be skipped--> |
| 111 | <integer translatable="false" name="config_wifiFrameworkMinPacketPerSecondActiveTraffic">16</integer> |
| 112 | <!-- Integer specifying the min packet Tx/Rx rates in packets per second to be considered |
| 113 | high traffic so that the device should stay on WiFi even if RSSI is very low --> |
| 114 | <integer translatable="false" name="config_wifiFrameworkMinPacketPerSecondHighTraffic">100</integer> |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 115 | <!-- Integer parameters of the wifi to cellular handover feature |
| 116 | wifi should not stick to bad networks --> |
| 117 | <!-- Integer threshold for low network score, should be somewhat less than the entry threshhold --> |
| 118 | <integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_5GHz">-80</integer> |
| 119 | <!-- Integer threshold, do not connect to APs with RSSI lower than the entry threshold --> |
| 120 | <integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_5GHz">-77</integer> |
| 121 | <integer translatable="false" name="config_wifi_framework_wifi_score_low_rssi_threshold_5GHz">-70</integer> |
| 122 | <integer translatable="false" name="config_wifi_framework_wifi_score_good_rssi_threshold_5GHz">-57</integer> |
| 123 | <integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_24GHz">-83</integer> |
| 124 | <integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_24GHz">-80</integer> |
| 125 | <integer translatable="false" name="config_wifi_framework_wifi_score_low_rssi_threshold_24GHz">-73</integer> |
| 126 | <integer translatable="false" name="config_wifi_framework_wifi_score_good_rssi_threshold_24GHz">-60</integer> |
Ahmed ElArabawy | 7eaa40d | 2019-11-25 11:58:51 -0800 | [diff] [blame] | 127 | <integer translatable="false" name="config_wifiFrameworkScoreBadRssiThreshold6ghz">-80</integer> |
| 128 | <integer translatable="false" name="config_wifiFrameworkScoreEntryRssiThreshold6ghz">-77</integer> |
| 129 | <integer translatable="false" name="config_wifiFrameworkScoreLowRssiThreshold6ghz">-70</integer> |
| 130 | <integer translatable="false" name="config_wifiFrameworkScoreGoodRssiThreshold6ghz">-57</integer> |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 131 | |
| 132 | <!-- Integer delay in milliseconds before shutting down soft AP when there |
lesl | 0666019 | 2019-12-27 17:53:49 +0800 | [diff] [blame] | 133 | are no connected devices. --> |
| 134 | <integer translatable="false" name="config_wifiFrameworkSoftApShutDownTimeoutMilliseconds">600000</integer> |
| 135 | |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 136 | |
lesl | 9859a4b | 2019-12-12 17:24:32 +0800 | [diff] [blame] | 137 | <!-- Integer indicating maximum hardware supported client number of soft ap --> |
Ahmed ElArabawy | d48bb29 | 2020-01-02 09:23:00 -0800 | [diff] [blame] | 138 | <integer translatable="false" name="config_wifiHardwareSoftapMaxClientCount">16</integer> |
lesl | 9859a4b | 2019-12-12 17:24:32 +0800 | [diff] [blame] | 139 | |
Ahmed ElArabawy | 3e7b68d | 2019-12-20 21:26:52 -0800 | [diff] [blame] | 140 | <!-- List of allowed channels in 2GHz band for softap. If the device doesn't want to restrict |
| 141 | channels this should be empty. Values is a comma separated channel string and/or channel |
| 142 | range string like '1-6,11'. --> |
Ahmed ElArabawy | f8f3cee | 2020-01-24 16:07:47 -0800 | [diff] [blame] | 143 | <string translatable="false" name="config_wifiSoftap2gChannelList">1-11</string> |
Ahmed ElArabawy | 3e7b68d | 2019-12-20 21:26:52 -0800 | [diff] [blame] | 144 | |
| 145 | <!-- List of allowed channels in 5GHz band for softap. If the device doesn't want to restrict |
| 146 | channels this should be empty. Values is a comma separated channel string and/or channel |
| 147 | range string like '36-48,149'. --> |
| 148 | <string translatable="false" name="config_wifiSoftap5gChannelList"></string> |
| 149 | |
| 150 | <!-- List of allowed channels in 6GHz band for softap. If the device doesn't want to restrict |
| 151 | channels this should be empty. Values is a comma separated channel string and/or channel |
| 152 | range string like '36-48,149'. --> |
| 153 | <string translatable="false" name="config_wifiSoftap6gChannelList"></string> |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 154 | |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 155 | <!-- Integer indicating associated full scan max num active channels --> |
| 156 | <integer translatable="false" name="config_wifi_framework_associated_partial_scan_max_num_active_channels">6</integer> |
| 157 | |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 158 | <!-- Integer delay in milliseconds before set wlan interface up during watchdog recovery --> |
| 159 | <integer translatable="false" name="config_wifi_framework_recovery_timeout_delay">2000</integer> |
| 160 | |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 161 | <!-- Boolean indicating associated network selection is allowed --> |
| 162 | <bool translatable="false" name="config_wifi_framework_enable_associated_network_selection">true</bool> |
| 163 | |
Michael Plass | ab37e88 | 2020-02-19 10:31:56 -0800 | [diff] [blame] | 164 | <!-- Integer duration after connection that a user-selected network is considered sufficient (milliseconds) --> |
| 165 | <integer translatable="false" name="config_wifiSufficientDurationAfterUserSelectionMilliseconds">60000</integer> |
| 166 | |
Ahmed ElArabawy | 670ff07 | 2020-01-22 02:00:57 -0800 | [diff] [blame] | 167 | <!-- Boolean indicating performing a partial initial scan is enabled --> |
| 168 | <bool translatable="false" name="config_wifiEnablePartialInitialScan">false</bool> |
| 169 | |
Nate Jiang | 02c42a3 | 2020-04-01 16:54:48 -0700 | [diff] [blame] | 170 | <!-- Integer for maximum number of channels to use in initial partial scan. If equals to 0, means add all available channels for networks --> |
Ahmed ElArabawy | 670ff07 | 2020-01-22 02:00:57 -0800 | [diff] [blame] | 171 | <integer translatable="false" name="config_wifiInitialPartialScanChannelMaxCount">10</integer> |
| 172 | |
| 173 | <!-- Integer for maximum age for scan results used to identify channels for partial initial |
| 174 | scan in minutes --> |
| 175 | <integer translatable="false" name="config_wifiInitialPartialScanChannelCacheAgeMins">14400</integer> |
| 176 | |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 177 | <!-- Boolean indicating whether single radio chain scan results are to be used for network selection --> |
| 178 | <bool translatable="false" name="config_wifi_framework_use_single_radio_chain_scan_results_network_selection">true</bool> |
| 179 | |
| 180 | <!-- Boolean indicating that wifi only link configuratios that have exact same credentials (i.e PSK) --> |
| 181 | <bool translatable="false" name="config_wifi_only_link_same_credential_configurations">true</bool> |
| 182 | |
| 183 | <!-- Boolean indicating whether framework needs to set the tx power limit for meeting SAR requirements --> |
| 184 | <bool translatable="false" name="config_wifi_framework_enable_sar_tx_power_limit">false</bool> |
| 185 | |
| 186 | <!-- Boolean indicating whether framework should use detection of softAP mode to set the tx |
| 187 | power limit for meeting SAR requirements --> |
| 188 | <bool translatable="false" name="config_wifi_framework_enable_soft_ap_sar_tx_power_limit">false</bool> |
| 189 | |
lesl | 55d0d5e | 2019-12-24 00:03:53 +0800 | [diff] [blame] | 190 | <!-- Wifi Hal supports force client disconnect for softap --> |
Ahmed ElArabawy | d48bb29 | 2020-01-02 09:23:00 -0800 | [diff] [blame] | 191 | <bool translatable="false" name="config_wifiSofapClientForceDisconnectSupported">true</bool> |
lesl | 55d0d5e | 2019-12-24 00:03:53 +0800 | [diff] [blame] | 192 | |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 193 | <!-- Wifi driver supports Automatic channel selection (ACS) for softap --> |
| 194 | <bool translatable="false" name="config_wifi_softap_acs_supported">false</bool> |
| 195 | |
lesl | 7a96efb | 2019-12-27 18:27:56 +0800 | [diff] [blame] | 196 | <!-- Wifi driver supports WPA3 Simultaneous Authentication of Equals (WPA3-SAE) for softap --> |
| 197 | <bool translatable="false" name="config_wifi_softap_sae_supported">false</bool> |
| 198 | |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 199 | <!-- Wifi driver supports IEEE80211AC for softap --> |
| 200 | <bool translatable="false" name="config_wifi_softap_ieee80211ac_supported">false</bool> |
| 201 | |
Ahmed ElArabawy | 12e7eec | 2019-12-06 23:39:50 -0800 | [diff] [blame] | 202 | <!-- Wifi driver supports IEEE80211AX for softap --> |
| 203 | <bool translatable="false" name="config_wifiSoftapIeee80211axSupported">false</bool> |
| 204 | |
Ahmed ElArabawy | 2fd701c | 2020-01-02 14:18:38 -0800 | [diff] [blame] | 205 | <!-- Wifi driver supports IEEE80211AX single user beamformer for softap --> |
| 206 | <bool translatable="false" name="config_wifiSoftapHeSuBeamformerSupported">false</bool> |
| 207 | |
| 208 | <!-- Wifi driver supports IEEE80211AX single user beamformee for softap --> |
| 209 | <bool translatable="false" name="config_wifiSoftapHeSuBeamformeeSupported">false</bool> |
| 210 | |
| 211 | <!-- Wifi driver supports IEEE80211AX multiple user beamformer for softap --> |
| 212 | <bool translatable="false" name="config_wifiSoftapHeMuBeamformerSupported">false</bool> |
| 213 | |
Ahmed ElArabawy | 2fd701c | 2020-01-02 14:18:38 -0800 | [diff] [blame] | 214 | <!-- Wifi driver supports IEEE80211AX TWT (Target Wake Time) for softap --> |
| 215 | <bool translatable="false" name="config_wifiSoftapHeTwtSupported">false</bool> |
| 216 | |
Ahmed ElArabawy | 12e7eec | 2019-12-06 23:39:50 -0800 | [diff] [blame] | 217 | <!-- Wifi driver supports 6GHz band for softap --> |
| 218 | <bool translatable="false" name="config_wifiSoftap6ghzSupported">false</bool> |
| 219 | |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 220 | <!-- Indicates that local-only hotspot should be brought up at 5GHz. This option is |
| 221 | for automotive builds only (the one that have PackageManager#FEATURE_AUTOMOTIVE) --> |
| 222 | <bool translatable="false" name="config_wifi_local_only_hotspot_5ghz">false</bool> |
| 223 | |
| 224 | <!-- Indicates that connected MAC randomization is supported on this device --> |
| 225 | <bool translatable="false" name="config_wifi_connected_mac_randomization_supported">false</bool> |
| 226 | |
| 227 | <!-- Indicates that p2p MAC randomization is supported on this device --> |
| 228 | <bool translatable="false" name="config_wifi_p2p_mac_randomization_supported">false</bool> |
| 229 | |
| 230 | <!-- Indicates that AP mode MAC randomization is supported on this device --> |
| 231 | <bool translatable="false" name="config_wifi_ap_mac_randomization_supported">true</bool> |
| 232 | |
xshu | 897cb2d | 2019-12-05 13:37:35 -0800 | [diff] [blame] | 233 | <!-- list of SSIDs to enable aggressive MAC randomization on --> |
| 234 | <string-array translatable="false" name="config_wifi_aggressive_randomization_ssid_allowlist"> |
| 235 | <!-- SSIDs are expected in quoted format: |
| 236 | <item>\"SSID_1\"</item> |
| 237 | <item>\"SSID_2\"</item> |
| 238 | --> |
| 239 | </string-array> |
| 240 | |
| 241 | <!-- list of SSIDs to disable aggressive MAC randomization on. If a SSID is in both the |
| 242 | allowlist and blocklist, then aggressive MAC randomization will still be disabled. --> |
| 243 | <string-array translatable="false" name="config_wifi_aggressive_randomization_ssid_blocklist"> |
| 244 | <!-- SSIDs are expected in quoted format: |
| 245 | <item>\"SSID_1\"</item> |
| 246 | <item>\"SSID_2\"</item> |
| 247 | --> |
| 248 | </string-array> |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 249 | |
| 250 | <!-- Indicates that wifi link probing is supported on this device --> |
| 251 | <bool translatable="false" name="config_wifi_link_probing_supported">false</bool> |
| 252 | |
| 253 | <!-- Configure wifi tcp buffersizes in the form: |
| 254 | rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max --> |
| 255 | <string name="config_wifi_tcp_buffers" translatable="false">524288,1048576,2097152,262144,524288,1048576</string> |
| 256 | |
| 257 | <!-- Do not translate. Default access point SSID used for tethering --> |
| 258 | <string name="wifi_tether_configure_ssid_default" translatable="false">AndroidAP</string> |
| 259 | <!-- Do not translate. Default access point SSID used for local only hotspot --> |
| 260 | <string name="wifi_localhotspot_configure_ssid_default" translatable="false">AndroidShare</string> |
| 261 | |
Roshan Pius | 77f8ce9 | 2019-11-12 12:36:48 -0800 | [diff] [blame] | 262 | <!-- Indicates that a full bugreport should be triggered when wifi diagnostics detects an error on non-user (i.e debug) builds --> |
| 263 | <bool translatable="false" name="config_wifi_diagnostics_bugreport_enabled">false</bool> |
Roger Wang | 2700207 | 2019-11-18 18:36:18 +0800 | [diff] [blame] | 264 | |
| 265 | <!-- Indicates that wifi watchdog is enabled on this device --> |
| 266 | <bool translatable="false" name="config_wifi_watchdog_enabled">true</bool> |
David Su | 715d842 | 2019-11-18 12:38:29 -0800 | [diff] [blame] | 267 | |
| 268 | <!-- |
| 269 | Controls the mapping between RSSI and RSSI levels. |
| 270 | |
| 271 | RSSI RSSI Level |
| 272 | (-infinity, thresholds[0]) 0 |
| 273 | [threshold[0], threshold[1]) 1 |
| 274 | [threshold[1], threshold[2]) 2 |
| 275 | ... ... |
| 276 | [threshold[len-2], threshold[len-1]) len-1 |
| 277 | [threshold[len-1], +infinity) len |
| 278 | |
| 279 | where: |
| 280 | [a, b) is the range of integers `n` such that a <= n < b |
| 281 | `threshold[i]` represents the i'th element of the config_wifiRssiLevelThresholds array |
| 282 | and `len` is the length of the config_wifiRssiLevelThresholds array. |
| 283 | --> |
| 284 | <integer-array translatable="false" name="config_wifiRssiLevelThresholds"> |
| 285 | <!-- RSSI RSSI Level --> |
| 286 | <item>-88</item> <!-- (-infinity, -88) 0 --> |
| 287 | <item>-77</item> <!-- [-88, -77) 1 --> |
| 288 | <item>-66</item> <!-- [-77, -66) 2 --> |
| 289 | <item>-55</item> <!-- [-66, -55) 3 --> |
| 290 | <!-- [-55, +infinity) 4 --> |
| 291 | </integer-array> |
Ahmed ElArabawy | 38d561f | 2019-11-20 13:07:26 -0800 | [diff] [blame] | 292 | |
| 293 | <!-- Array describing scanning schedule in seconds when device is disconnected and screen is on --> |
| 294 | <integer-array translatable="false" name="config_wifiDisconnectedScanIntervalScheduleSec"> |
| 295 | <item>20</item> |
| 296 | <item>40</item> |
| 297 | <item>80</item> |
| 298 | <item>160</item> |
| 299 | </integer-array> |
| 300 | |
| 301 | <!-- Array describing scanning schedule in seconds when device is connected and screen is on --> |
| 302 | <integer-array translatable="false" name="config_wifiConnectedScanIntervalScheduleSec"> |
| 303 | <item>20</item> |
| 304 | <item>40</item> |
| 305 | <item>80</item> |
| 306 | <item>160</item> |
| 307 | </integer-array> |
Ahmed ElArabawy | ca845b4 | 2019-11-20 17:44:17 -0800 | [diff] [blame] | 308 | |
Kai Shi | fbc5d8c | 2020-03-05 10:22:12 -0800 | [diff] [blame] | 309 | <!-- Integer for minimum time between the last network selection and next high RSSI scan |
| 310 | in seconds when device is connected and screen is on --> |
| 311 | <integer translatable="false" name="config_wifiConnectedHighRssiScanMinimumWindowSizeSec"> 600 </integer> |
| 312 | |
Ahmed ElArabawy | 3bfce1a | 2020-01-21 12:08:09 -0800 | [diff] [blame] | 313 | <!-- Array describing scanning schedule in seconds when device is connected and screen is on |
| 314 | and the connected network is the only saved network. |
| 315 | When this array is set to an empty array, the noraml connected scan schedule defined |
| 316 | in config_wifiConnectedScanIntervalScheduleSec will be used --> |
| 317 | <integer-array translatable="false" name="config_wifiSingleSavedNetworkConnectedScanIntervalScheduleSec"> |
| 318 | </integer-array> |
| 319 | |
xshu | 91df798 | 2020-01-21 17:27:06 -0800 | [diff] [blame] | 320 | <!-- List of constants that indicate the number of consecutive failures per type needed to block a BSSID. |
| 321 | A blocked BSSID will not be considered in network selection and firmware roaming.--> |
| 322 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorApUnableToHandleNewStaThreshold"> 1 </integer> |
| 323 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorNetworkValidationFailureThreshold"> 1 </integer> |
| 324 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorWrongPasswordThreshold"> 1 </integer> |
| 325 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorEapFailureThreshold"> 1 </integer> |
| 326 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorAssociationRejectionThreshold"> 3 </integer> |
| 327 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorAssociationTimeoutThreshold"> 3 </integer> |
| 328 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorAuthenticationFailureThreshold"> 3 </integer> |
| 329 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorDhcpFailureThreshold"> 3 </integer> |
| 330 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorAbnormalDisconnectThreshold"> 3 </integer> |
| 331 | |
| 332 | <!-- Base duration to block a BSSID after consecutive failures happen. (default = 5 mins) |
| 333 | The blocklist duration is increased exponentially for a BSSID that consecutively gets added to the blocklist. |
xshu | 0c3faa4 | 2020-02-03 17:50:34 -0800 | [diff] [blame] | 334 | ie. 5/10/20/40/80/160/320/640 minutes - capped at 640 minutes because the default for |
| 335 | config_wifiBssidBlocklistMonitorFailureStreakCap is set to 7--> |
xshu | 91df798 | 2020-01-21 17:27:06 -0800 | [diff] [blame] | 336 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorBaseBlockDurationMs"> 300000 </integer> |
| 337 | |
xshu | 0c3faa4 | 2020-02-03 17:50:34 -0800 | [diff] [blame] | 338 | <!-- Base block duration for a failure at low RSSI (less than the sufficient RSSI) used for |
| 339 | ASSOCIATION_TIMEOUT, ABNORMAL_DISCONNECT, and NETWORK_VALIDATION failures. The block duration |
| 340 | for a BSSID that keeps failing will grow exponentially to the this base duration. |
| 341 | ie. 0.5/1/2/4/8/16/32/64 minutes - capped at 64 minutes because the default for |
| 342 | config_wifiBssidBlocklistMonitorFailureStreakCap is set to 7. |
| 343 | This value should be configured to be less than config_wifiBssidBlocklistMonitorBaseBlockDurationMs --> |
| 344 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorBaseLowRssiBlockDurationMs"> 30000 </integer> |
| 345 | |
xshu | 91df798 | 2020-01-21 17:27:06 -0800 | [diff] [blame] | 346 | <!-- The failure streak is the number of times a BSSID consecutively gets blocked without ever |
| 347 | successfully connecting in between, and is used to calculate the exponentially growing blocklist time. |
xshu | 0c3faa4 | 2020-02-03 17:50:34 -0800 | [diff] [blame] | 348 | The config_wifiBssidBlocklistMonitorFailureStreakCap controls how many times the block duration |
| 349 | could exponentially grow when a BSSID keeps failing. |
| 350 | ie. A value of 0 means BSSIDs are always blocked for the flat base duration defined by |
| 351 | config_wifiBssidBlocklistMonitorBaseBlockDurationMs and config_wifiBssidBlocklistMonitorBaseLowRssiBlockDurationMs. --> |
xshu | 91df798 | 2020-01-21 17:27:06 -0800 | [diff] [blame] | 352 | <integer translatable="false" name="config_wifiBssidBlocklistMonitorFailureStreakCap"> 7 </integer> |
| 353 | |
xshu | 91df798 | 2020-01-21 17:27:06 -0800 | [diff] [blame] | 354 | <!-- If a non-locally generated disconnect happens within this time window after association, |
| 355 | then count it as a failure with reason code REASON_ABNORMAL_DISCONNECT (default = 30 seconds) --> |
| 356 | <integer translatable="false" name="config_wifiBssidBlocklistAbnormalDisconnectTimeWindowMs"> 30000 </integer> |
| 357 | |
Ahmed ElArabawy | ca845b4 | 2019-11-20 17:44:17 -0800 | [diff] [blame] | 358 | <!-- Indicates that hidden networks are to be scanned during scan only mode --> |
| 359 | <bool translatable="false" name="config_wifiScanHiddenNetworksScanOnlyMode">false</bool> |
Roshan Pius | 35ef0e1 | 2020-01-15 06:17:11 -0800 | [diff] [blame] | 360 | |
| 361 | <!-- Enable logging WifiIsUnusableEvent in metrics which gets triggered when wifi becomes unusable. --> |
| 362 | <bool translatable="false" name="config_wifiIsUnusableEventMetricsEnabled">true</bool> |
| 363 | |
| 364 | <!-- The minimum number of txBad the framework has to observe to trigger a wifi data stall. --> |
| 365 | <integer translatable="false" name="config_wifiDataStallMinTxBad">1</integer> |
| 366 | |
| 367 | <!-- The minimum number of txSuccess the framework has to observe |
| 368 | to trigger a wifi data stall when rxSuccess is 0. --> |
| 369 | <integer translatable="false" name="config_wifiDataStallMinTxSuccessWithoutRx">50</integer> |
| 370 | |
| 371 | <!-- Enable logging Wifi LinkSpeedCounts in metrics. --> |
| 372 | <bool translatable="false" name="config_wifiLinkSpeedMetricsEnabled">true</bool> |
| 373 | |
| 374 | <!-- Enable the PNO frequency culling optimization. --> |
| 375 | <bool translatable="false" name="config_wifiPnoFrequencyCullingEnabled">true</bool> |
| 376 | |
| 377 | <!-- Enable the PNO frequency culling optimization. --> |
| 378 | <bool translatable="false" name="config_wifiPnoRecencySortingEnabled">true</bool> |
| 379 | |
Nate Jiang | 557f76b | 2020-03-13 17:52:41 -0700 | [diff] [blame] | 380 | <!-- Maximum number of SSIDs that can be PNO scanned concurrently--> |
| 381 | <integer translatable="false" name="config_wifiMaxPnoSsidCount">16</integer> |
| 382 | |
Roshan Pius | 35ef0e1 | 2020-01-15 06:17:11 -0800 | [diff] [blame] | 383 | <!-- Suspend optimization. --> |
| 384 | <bool translatable="false" name="config_wifiSuspendOptimizationsEnabled">true</bool> |
| 385 | |
xshu | 20f200f | 2020-01-28 16:44:23 -0800 | [diff] [blame] | 386 | <!-- Network selection optimization at DEVICE_MOBILITY_STATE_HIGH_MVMT --> |
xshu | 560f74b | 2020-02-19 16:42:36 -0800 | [diff] [blame] | 387 | <bool translatable="false" name="config_wifiHighMovementNetworkSelectionOptimizationEnabled">true</bool> |
xshu | 20f200f | 2020-01-28 16:44:23 -0800 | [diff] [blame] | 388 | |
| 389 | <!-- Duration for the delayed scan used to verify access points are staying relatively stationary |
| 390 | to the device at high mobility state. (default = 10 seconds) --> |
| 391 | <integer translatable="false" name="config_wifiHighMovementNetworkSelectionOptimizationScanDelayMs">10000</integer> |
| 392 | |
| 393 | <!-- When config_wifiHighMovementNetworkSelectionOptimizationEnabled is true, BSSIDs with RSSI |
| 394 | from 2 consecutive scans that differ in either direction by more than this threshold will be |
| 395 | filtered out from network selection. (default = 10 dBs) --> |
| 396 | <integer translatable="false" name="config_wifiHighMovementNetworkSelectionOptimizationRssiDelta">10</integer> |
| 397 | |
Roshan Pius | 35ef0e1 | 2020-01-15 06:17:11 -0800 | [diff] [blame] | 398 | <!-- The interval in milliseconds at which wifi rtt ranging requests will be throttled when |
| 399 | they are coming from the background apps (default = 30 mins). --> |
| 400 | <integer translatable="false" name="config_wifiRttBackgroundExecGapMs">1800000</integer> |
Mingguang Xu | 4edbf44 | 2020-01-07 14:32:08 -0800 | [diff] [blame] | 401 | |
| 402 | <!-- Integer indicating the RSSI and link layer stats polling interval in milliseconds when device is connected and screen is on --> |
| 403 | <integer translatable="false" name="config_wifiPollRssiIntervalMilliseconds">3000</integer> |
Hai Shalom | bd48cfe | 2020-01-21 11:55:47 -0800 | [diff] [blame] | 404 | |
| 405 | <!-- Enable WPA2 to WPA3 auto-upgrade --> |
| 406 | <bool translatable="false" name="config_wifiSaeUpgradeEnabled">true</bool> |
| 407 | |
| 408 | <!-- Enable WPA2 to WPA3 auto-upgrade offload to capable Driver/Firmware --> |
| 409 | <bool translatable="false" name="config_wifiSaeUpgradeOffloadEnabled">false</bool> |
Roshan Pius | 11c234c | 2020-04-08 09:09:37 -0700 | [diff] [blame] | 410 | |
| 411 | <!-- Number of self recoveries to be attempted per hour. Any fatal errors beyond this will |
| 412 | cause the wifi stack to turn wifi off and wait for user input. |
| 413 | Set to 0 to turn off recovery attempts and always turn off wifi on failures --> |
| 414 | <integer translatable="false" name="config_wifiMaxNativeFailureSelfRecoveryPerHour">2</integer> |
Nate Jiang | 07b8d66 | 2020-04-29 14:20:34 -0700 | [diff] [blame] | 415 | <!-- Ignore the open saved network if from carrier provisioning app, there is a same open suggestion and a secure suggestion from same carrier available --> |
| 416 | <bool translatable="false" name="config_wifiIgnoreOpenSavedNetworkWhenSecureSuggestionAvailable">true</bool> |
Purushottam Kushwaha | 0715666 | 2020-05-14 18:13:51 +0530 | [diff] [blame] | 417 | |
| 418 | <!-- Wifi driver Automatic channel selection (ACS) for softap to include DFS channels --> |
| 419 | <bool translatable="false" name="config_wifiSoftapAcsIncludeDfs">false</bool> |
David Su | 41769d6 | 2020-05-26 22:26:05 -0700 | [diff] [blame^] | 420 | |
| 421 | <!-- Initial PNO scan interval, in milliseconds, when the device is moving (i.e. |
| 422 | WifiManager.DEVICE_MOBILITY_STATE_UNKNOWN, WifiManager.DEVICE_MOBILITY_STATE_HIGH_MVMT, or |
| 423 | WifiManager.DEVICE_MOBILITY_STATE_LOW_MVMT). |
| 424 | The scan interval backs off from this initial interval on subsequent scans. |
| 425 | This scan is performed when screen is off and disconnected. --> |
| 426 | <integer translatable="false" name="config_wifiMovingPnoScanIntervalMillis">20000</integer> |
| 427 | |
| 428 | <!-- Initial PNO scan interval, in milliseconds, when the device is stationary (i.e. |
| 429 | WifiManager.DEVICE_MOBILITY_STATE_STATIONARY). |
| 430 | The scan interval backs off from this initial interval on subsequent scans. |
| 431 | This scan is performed when screen is off and disconnected. --> |
| 432 | <integer translatable="false" name="config_wifiStationaryPnoScanIntervalMillis">60000</integer> |
Roshan Pius | 497d9fc | 2019-10-30 06:52:20 -0700 | [diff] [blame] | 433 | </resources> |