blob: 460dce4c335c164d830685d1e67a73e3aa4110a4 [file] [log] [blame]
Roshan Pius497d9fc2019-10-30 06:52:20 -07001<?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 ElArabawy6921b852019-12-09 16:20:49 -080024 <!-- 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 Pius497d9fc2019-10-30 06:52:20 -070032
Ahmed ElArabawy6a44f642020-01-16 19:10:45 -080033 <!-- 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
Roshan Pius497d9fc2019-10-30 06:52:20 -070039 <!-- Maximum number of concurrent WiFi interfaces in AP mode -->
40 <integer translatable="false" name="config_wifi_max_ap_interfaces">1</integer>
41
42 <!-- Boolean indicating whether the wifi chipset requires the softap band be -->
43 <!-- converted from 5GHz to ANY due to hardware restrictions -->
44 <bool translatable="false" name="config_wifi_convert_apband_5ghz_to_any">false</bool>
45
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 Pius497d9fc2019-10-30 06:52:20 -070059 <!-- 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 Plassee541ac2019-12-18 15:12:40 -080081 <!-- 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. -->
89 <integer translatable="false" name="config_wifiFrameworkThroughputBonusLimit">200</integer>
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>
99
100 <integer translatable="false" name="config_wifiFrameworkCurrentNetworkBonus">20</integer>
101 <integer translatable="false" name="config_wifiFrameworkSecureNetworkBonus">10</integer>
102
103 <!-- The bonus for the last-selected network starts out very large to override the category
104 boundaries. -->
105 <integer translatable="false" name="config_wifiFrameworkLastSelectionBonus">1999</integer>
106
Kai Shi50148c42019-11-25 18:10:54 -0800107 <!-- Integer specifying the min packet Tx/Rx rates in packets per second to be considered
108 active traffic so that network selection and scan could be skipped-->
109 <integer translatable="false" name="config_wifiFrameworkMinPacketPerSecondActiveTraffic">16</integer>
110 <!-- Integer specifying the min packet Tx/Rx rates in packets per second to be considered
111 high traffic so that the device should stay on WiFi even if RSSI is very low -->
112 <integer translatable="false" name="config_wifiFrameworkMinPacketPerSecondHighTraffic">100</integer>
Roshan Pius497d9fc2019-10-30 06:52:20 -0700113 <!-- Integer parameters of the wifi to cellular handover feature
114 wifi should not stick to bad networks -->
115 <!-- Integer threshold for low network score, should be somewhat less than the entry threshhold -->
116 <integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_5GHz">-80</integer>
117 <!-- Integer threshold, do not connect to APs with RSSI lower than the entry threshold -->
118 <integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_5GHz">-77</integer>
119 <integer translatable="false" name="config_wifi_framework_wifi_score_low_rssi_threshold_5GHz">-70</integer>
120 <integer translatable="false" name="config_wifi_framework_wifi_score_good_rssi_threshold_5GHz">-57</integer>
121 <integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_24GHz">-83</integer>
122 <integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_24GHz">-80</integer>
123 <integer translatable="false" name="config_wifi_framework_wifi_score_low_rssi_threshold_24GHz">-73</integer>
124 <integer translatable="false" name="config_wifi_framework_wifi_score_good_rssi_threshold_24GHz">-60</integer>
Ahmed ElArabawy7eaa40d2019-11-25 11:58:51 -0800125 <integer translatable="false" name="config_wifiFrameworkScoreBadRssiThreshold6ghz">-80</integer>
126 <integer translatable="false" name="config_wifiFrameworkScoreEntryRssiThreshold6ghz">-77</integer>
127 <integer translatable="false" name="config_wifiFrameworkScoreLowRssiThreshold6ghz">-70</integer>
128 <integer translatable="false" name="config_wifiFrameworkScoreGoodRssiThreshold6ghz">-57</integer>
Roshan Pius497d9fc2019-10-30 06:52:20 -0700129
130 <!-- Integer delay in milliseconds before shutting down soft AP when there
lesl06660192019-12-27 17:53:49 +0800131 are no connected devices. -->
132 <integer translatable="false" name="config_wifiFrameworkSoftApShutDownTimeoutMilliseconds">600000</integer>
133
Roshan Pius497d9fc2019-10-30 06:52:20 -0700134
lesl9859a4b2019-12-12 17:24:32 +0800135 <!-- Integer indicating maximum hardware supported client number of soft ap -->
Ahmed ElArabawyd48bb292020-01-02 09:23:00 -0800136 <integer translatable="false" name="config_wifiHardwareSoftapMaxClientCount">16</integer>
lesl9859a4b2019-12-12 17:24:32 +0800137
Roshan Pius497d9fc2019-10-30 06:52:20 -0700138 <string translatable="false" name="config_wifi_random_mac_oui">DA-A1-19</string>
Ahmed ElArabawy3e7b68d2019-12-20 21:26:52 -0800139
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'. -->
143 <string translatable="false" name="config_wifiSoftap2gChannelList">1,6,11</string>
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 Pius497d9fc2019-10-30 06:52:20 -0700154
Roshan Pius497d9fc2019-10-30 06:52:20 -0700155 <!-- 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 Pius497d9fc2019-10-30 06:52:20 -0700158 <!-- 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 Pius497d9fc2019-10-30 06:52:20 -0700161 <!-- Boolean indicating associated network selection is allowed -->
162 <bool translatable="false" name="config_wifi_framework_enable_associated_network_selection">true</bool>
163
164 <!-- Boolean indicating whether single radio chain scan results are to be used for network selection -->
165 <bool translatable="false" name="config_wifi_framework_use_single_radio_chain_scan_results_network_selection">true</bool>
166
167 <!-- Boolean indicating that wifi only link configuratios that have exact same credentials (i.e PSK) -->
168 <bool translatable="false" name="config_wifi_only_link_same_credential_configurations">true</bool>
169
170 <!-- Boolean indicating whether framework needs to set the tx power limit for meeting SAR requirements -->
171 <bool translatable="false" name="config_wifi_framework_enable_sar_tx_power_limit">false</bool>
172
173 <!-- Boolean indicating whether framework should use detection of softAP mode to set the tx
174 power limit for meeting SAR requirements -->
175 <bool translatable="false" name="config_wifi_framework_enable_soft_ap_sar_tx_power_limit">false</bool>
176
lesl55d0d5e2019-12-24 00:03:53 +0800177 <!-- Wifi Hal supports force client disconnect for softap -->
Ahmed ElArabawyd48bb292020-01-02 09:23:00 -0800178 <bool translatable="false" name="config_wifiSofapClientForceDisconnectSupported">true</bool>
lesl55d0d5e2019-12-24 00:03:53 +0800179
Roshan Pius497d9fc2019-10-30 06:52:20 -0700180 <!-- Wifi driver supports Automatic channel selection (ACS) for softap -->
181 <bool translatable="false" name="config_wifi_softap_acs_supported">false</bool>
182
lesl7a96efb2019-12-27 18:27:56 +0800183 <!-- Wifi driver supports WPA3 Simultaneous Authentication of Equals (WPA3-SAE) for softap -->
184 <bool translatable="false" name="config_wifi_softap_sae_supported">false</bool>
185
Roshan Pius497d9fc2019-10-30 06:52:20 -0700186 <!-- Wifi driver supports IEEE80211AC for softap -->
187 <bool translatable="false" name="config_wifi_softap_ieee80211ac_supported">false</bool>
188
Ahmed ElArabawy12e7eec2019-12-06 23:39:50 -0800189 <!-- Wifi driver supports IEEE80211AX for softap -->
190 <bool translatable="false" name="config_wifiSoftapIeee80211axSupported">false</bool>
191
Ahmed ElArabawy2fd701c2020-01-02 14:18:38 -0800192 <!-- Wifi driver supports IEEE80211AX single user beamformer for softap -->
193 <bool translatable="false" name="config_wifiSoftapHeSuBeamformerSupported">false</bool>
194
195 <!-- Wifi driver supports IEEE80211AX single user beamformee for softap -->
196 <bool translatable="false" name="config_wifiSoftapHeSuBeamformeeSupported">false</bool>
197
198 <!-- Wifi driver supports IEEE80211AX multiple user beamformer for softap -->
199 <bool translatable="false" name="config_wifiSoftapHeMuBeamformerSupported">false</bool>
200
Ahmed ElArabawy2fd701c2020-01-02 14:18:38 -0800201 <!-- Wifi driver supports IEEE80211AX TWT (Target Wake Time) for softap -->
202 <bool translatable="false" name="config_wifiSoftapHeTwtSupported">false</bool>
203
Ahmed ElArabawy12e7eec2019-12-06 23:39:50 -0800204 <!-- Wifi driver supports 6GHz band for softap -->
205 <bool translatable="false" name="config_wifiSoftap6ghzSupported">false</bool>
206
Roshan Pius497d9fc2019-10-30 06:52:20 -0700207 <!-- Indicates that local-only hotspot should be brought up at 5GHz. This option is
208 for automotive builds only (the one that have PackageManager#FEATURE_AUTOMOTIVE) -->
209 <bool translatable="false" name="config_wifi_local_only_hotspot_5ghz">false</bool>
210
211 <!-- Indicates that connected MAC randomization is supported on this device -->
212 <bool translatable="false" name="config_wifi_connected_mac_randomization_supported">false</bool>
213
214 <!-- Indicates that p2p MAC randomization is supported on this device -->
215 <bool translatable="false" name="config_wifi_p2p_mac_randomization_supported">false</bool>
216
217 <!-- Indicates that AP mode MAC randomization is supported on this device -->
218 <bool translatable="false" name="config_wifi_ap_mac_randomization_supported">true</bool>
219
xshu897cb2d2019-12-05 13:37:35 -0800220 <!-- list of SSIDs to enable aggressive MAC randomization on -->
221 <string-array translatable="false" name="config_wifi_aggressive_randomization_ssid_allowlist">
222 <!-- SSIDs are expected in quoted format:
223 <item>\"SSID_1\"</item>
224 <item>\"SSID_2\"</item>
225 -->
226 </string-array>
227
228 <!-- list of SSIDs to disable aggressive MAC randomization on. If a SSID is in both the
229 allowlist and blocklist, then aggressive MAC randomization will still be disabled. -->
230 <string-array translatable="false" name="config_wifi_aggressive_randomization_ssid_blocklist">
231 <!-- SSIDs are expected in quoted format:
232 <item>\"SSID_1\"</item>
233 <item>\"SSID_2\"</item>
234 -->
235 </string-array>
Roshan Pius497d9fc2019-10-30 06:52:20 -0700236
237 <!-- Indicates that wifi link probing is supported on this device -->
238 <bool translatable="false" name="config_wifi_link_probing_supported">false</bool>
239
Kai Shi6ff1d982019-11-13 20:40:01 -0800240 <!-- Indicates that contiguous 160MHz mode is supported on this device -->
241 <bool translatable="false" name="config_wifi_contiguous_160mhz_supported">false</bool>
242
243 <!-- Integer indicating the max number of spatial streams supported on this device -->
244 <integer translatable="false" name="config_wifi_max_num_spatial_stream_supported">2</integer>
245
Roshan Pius497d9fc2019-10-30 06:52:20 -0700246 <!-- Configure wifi tcp buffersizes in the form:
247 rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max -->
248 <string name="config_wifi_tcp_buffers" translatable="false">524288,1048576,2097152,262144,524288,1048576</string>
249
250 <!-- Do not translate. Default access point SSID used for tethering -->
251 <string name="wifi_tether_configure_ssid_default" translatable="false">AndroidAP</string>
252 <!-- Do not translate. Default access point SSID used for local only hotspot -->
253 <string name="wifi_localhotspot_configure_ssid_default" translatable="false">AndroidShare</string>
254
Roshan Pius77f8ce92019-11-12 12:36:48 -0800255 <!-- Indicates that a full bugreport should be triggered when wifi diagnostics detects an error on non-user (i.e debug) builds -->
256 <bool translatable="false" name="config_wifi_diagnostics_bugreport_enabled">false</bool>
Roger Wang27002072019-11-18 18:36:18 +0800257
258 <!-- Indicates that wifi watchdog is enabled on this device -->
259 <bool translatable="false" name="config_wifi_watchdog_enabled">true</bool>
David Su715d8422019-11-18 12:38:29 -0800260
261 <!--
262 Controls the mapping between RSSI and RSSI levels.
263
264 RSSI RSSI Level
265 (-infinity, thresholds[0]) 0
266 [threshold[0], threshold[1]) 1
267 [threshold[1], threshold[2]) 2
268 ... ...
269 [threshold[len-2], threshold[len-1]) len-1
270 [threshold[len-1], +infinity) len
271
272 where:
273 [a, b) is the range of integers `n` such that a <= n < b
274 `threshold[i]` represents the i'th element of the config_wifiRssiLevelThresholds array
275 and `len` is the length of the config_wifiRssiLevelThresholds array.
276 -->
277 <integer-array translatable="false" name="config_wifiRssiLevelThresholds">
278 <!-- RSSI RSSI Level -->
279 <item>-88</item> <!-- (-infinity, -88) 0 -->
280 <item>-77</item> <!-- [-88, -77) 1 -->
281 <item>-66</item> <!-- [-77, -66) 2 -->
282 <item>-55</item> <!-- [-66, -55) 3 -->
283 <!-- [-55, +infinity) 4 -->
284 </integer-array>
Ahmed ElArabawy38d561f2019-11-20 13:07:26 -0800285
286 <!-- Array describing scanning schedule in seconds when device is disconnected and screen is on -->
287 <integer-array translatable="false" name="config_wifiDisconnectedScanIntervalScheduleSec">
288 <item>20</item>
289 <item>40</item>
290 <item>80</item>
291 <item>160</item>
292 </integer-array>
293
294 <!-- Array describing scanning schedule in seconds when device is connected and screen is on -->
295 <integer-array translatable="false" name="config_wifiConnectedScanIntervalScheduleSec">
296 <item>20</item>
297 <item>40</item>
298 <item>80</item>
299 <item>160</item>
300 </integer-array>
Ahmed ElArabawyca845b42019-11-20 17:44:17 -0800301
Ahmed ElArabawy3bfce1a2020-01-21 12:08:09 -0800302 <!-- Array describing scanning schedule in seconds when device is connected and screen is on
303 and the connected network is the only saved network.
304 When this array is set to an empty array, the noraml connected scan schedule defined
305 in config_wifiConnectedScanIntervalScheduleSec will be used -->
306 <integer-array translatable="false" name="config_wifiSingleSavedNetworkConnectedScanIntervalScheduleSec">
307 </integer-array>
308
Ahmed ElArabawyca845b42019-11-20 17:44:17 -0800309 <!-- Indicates that hidden networks are to be scanned during scan only mode -->
310 <bool translatable="false" name="config_wifiScanHiddenNetworksScanOnlyMode">false</bool>
Roshan Pius35ef0e12020-01-15 06:17:11 -0800311
312 <!-- Enable logging WifiIsUnusableEvent in metrics which gets triggered when wifi becomes unusable. -->
313 <bool translatable="false" name="config_wifiIsUnusableEventMetricsEnabled">true</bool>
314
315 <!-- The minimum number of txBad the framework has to observe to trigger a wifi data stall. -->
316 <integer translatable="false" name="config_wifiDataStallMinTxBad">1</integer>
317
318 <!-- The minimum number of txSuccess the framework has to observe
319 to trigger a wifi data stall when rxSuccess is 0. -->
320 <integer translatable="false" name="config_wifiDataStallMinTxSuccessWithoutRx">50</integer>
321
322 <!-- Enable logging Wifi LinkSpeedCounts in metrics. -->
323 <bool translatable="false" name="config_wifiLinkSpeedMetricsEnabled">true</bool>
324
325 <!-- Enable the PNO frequency culling optimization. -->
326 <bool translatable="false" name="config_wifiPnoFrequencyCullingEnabled">true</bool>
327
328 <!-- Enable the PNO frequency culling optimization. -->
329 <bool translatable="false" name="config_wifiPnoRecencySortingEnabled">true</bool>
330
331 <!-- Suspend optimization. -->
332 <bool translatable="false" name="config_wifiSuspendOptimizationsEnabled">true</bool>
333
334 <!-- The interval in milliseconds at which wifi rtt ranging requests will be throttled when
335 they are coming from the background apps (default = 30 mins). -->
336 <integer translatable="false" name="config_wifiRttBackgroundExecGapMs">1800000</integer>
Mingguang Xu4edbf442020-01-07 14:32:08 -0800337
338 <!-- Integer indicating the RSSI and link layer stats polling interval in milliseconds when device is connected and screen is on -->
339 <integer translatable="false" name="config_wifiPollRssiIntervalMilliseconds">3000</integer>
Roshan Pius497d9fc2019-10-30 06:52:20 -0700340</resources>