| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2019 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- These resources are around just to allow their values to be customized |
| for different hardware and product builds. Do not translate. |
| |
| NOTE: The naming convention is "config_camelCaseValue". Some legacy |
| entries do not follow the convention, but all new entries should. --> |
| |
| <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> |
| <!-- boolean indicating whether the WiFi chipset has 5GHz band support. |
| Note: This config is replacing the config_wifi_dual_band_support |
| since more bands may now be supported (such as 6GHz), the naming dual_band |
| is no longer indicative, and a separate config now exists for each band --> |
| <bool translatable="false" name ="config_wifi5ghzSupport">false</bool> |
| |
| <!-- boolean indicating whether the WiFi chipset has 6GHz band support --> |
| <bool translatable="false" name ="config_wifi6ghzSupport">false</bool> |
| |
| <!-- Indicates that 11ax mode is supported on this device |
| Note that if this flag is set to true, then 11ax is assumed to be supported. |
| However, if it is left to the default value of false, the 11ax support will |
| be checked via NL80211 interface --> |
| <bool translatable="false" name="config_wifi11axSupportOverride">false</bool> |
| |
| <!-- Maximum number of concurrent WiFi interfaces in AP mode --> |
| <integer translatable="false" name="config_wifi_max_ap_interfaces">1</integer> |
| |
| <!-- Boolean indicating whether the wifi chipset requires the softap band be --> |
| <!-- converted from 5GHz to ANY due to hardware restrictions --> |
| <bool translatable="false" name="config_wifi_convert_apband_5ghz_to_any">false</bool> |
| |
| <!-- Boolean indicating whether 802.11r Fast BSS Transition is enabled on this platform --> |
| <bool translatable="false" name="config_wifi_fast_bss_transition_enabled">false</bool> |
| |
| <!-- Device type information conforming to Annex B format in WiFi Direct specification. |
| The default represents a dual-mode smartphone --> |
| <string translatable="false" name="config_wifi_p2p_device_type">10-0050F204-5</string> |
| |
| <!-- Boolean indicating whether the wifi chipset supports background scanning mechanism. |
| This mechanism allows the host to remain in suspend state and the dongle to actively |
| scan and wake the host when a configured SSID is detected by the dongle. This chipset |
| capability can provide power savings when wifi needs to be always kept on. --> |
| <bool translatable="false" name="config_wifi_background_scan_support">false</bool> |
| |
| <!-- Boolean indicating whether or not to revert to default country code when cellular |
| radio is unable to find any MCC information to infer wifi country code from --> |
| <bool translatable="false" name="config_wifi_revert_country_code_on_cellular_loss">false</bool> |
| |
| <!-- Integer size limit, in KB, for a single WifiLogger ringbuffer, in default logging mode --> |
| <integer translatable="false" name="config_wifi_logger_ring_buffer_default_size_limit_kb">32</integer> |
| |
| <!-- Integer size limit, in KB, for a single WifiLogger ringbuffer, in verbose logging mode --> |
| <integer translatable="false" name="config_wifi_logger_ring_buffer_verbose_size_limit_kb">1024</integer> |
| |
| <!-- Array indicating wifi fatal firmware alert error code list from driver --> |
| <integer-array translatable="false" name="config_wifi_fatal_firmware_alert_error_code_list"> |
| <!-- Example: |
| <item>0</item> |
| <item>1</item> |
| <item>2</item> |
| --> |
| </integer-array> |
| |
| <!-- Boolean indicating whether or not wifi should turn off when emergency call is made --> |
| <bool translatable="false" name="config_wifi_turn_off_during_emergency_call">false</bool> |
| |
| <!-- Parameters for controlling network selection by the framework --> |
| |
| <!-- The ratio of the next two parameters is the multiplier that converts the estimated |
| throughput in Mbps to score points. --> |
| <integer translatable="false" name="config_wifiFrameworkThroughputBonusNumerator">120</integer> |
| <integer translatable="false" name="config_wifiFrameworkThroughputBonusDenominator">433</integer> |
| |
| <!-- Maximum contribution (in score points) due to the estimated throughput. --> |
| <integer translatable="false" name="config_wifiFrameworkThroughputBonusLimit">200</integer> |
| |
| <!-- The default values chosen here establish four non-overlapping categories: |
| saved, unmetered |
| unsaved, unmetered |
| saved, metered |
| unsaved, metered |
| These values can be reduced to allow overlapping between categories. --> |
| <integer translatable="false" name="config_wifiFrameworkSavedNetworkBonus">500</integer> |
| <integer translatable="false" name="config_wifiFrameworkUnmeteredNetworkBonus">1000</integer> |
| |
| <integer translatable="false" name="config_wifiFrameworkCurrentNetworkBonus">20</integer> |
| <integer translatable="false" name="config_wifiFrameworkSecureNetworkBonus">10</integer> |
| |
| <!-- The bonus for the last-selected network starts out very large to override the category |
| boundaries. --> |
| <integer translatable="false" name="config_wifiFrameworkLastSelectionBonus">1999</integer> |
| |
| <!-- Integer specifying the min packet Tx/Rx rates in packets per second to be considered |
| active traffic so that network selection and scan could be skipped--> |
| <integer translatable="false" name="config_wifiFrameworkMinPacketPerSecondActiveTraffic">16</integer> |
| <!-- Integer specifying the min packet Tx/Rx rates in packets per second to be considered |
| high traffic so that the device should stay on WiFi even if RSSI is very low --> |
| <integer translatable="false" name="config_wifiFrameworkMinPacketPerSecondHighTraffic">100</integer> |
| <!-- Integer parameters of the wifi to cellular handover feature |
| wifi should not stick to bad networks --> |
| <!-- Integer threshold for low network score, should be somewhat less than the entry threshhold --> |
| <integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_5GHz">-80</integer> |
| <!-- Integer threshold, do not connect to APs with RSSI lower than the entry threshold --> |
| <integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_5GHz">-77</integer> |
| <integer translatable="false" name="config_wifi_framework_wifi_score_low_rssi_threshold_5GHz">-70</integer> |
| <integer translatable="false" name="config_wifi_framework_wifi_score_good_rssi_threshold_5GHz">-57</integer> |
| <integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_24GHz">-83</integer> |
| <integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_24GHz">-80</integer> |
| <integer translatable="false" name="config_wifi_framework_wifi_score_low_rssi_threshold_24GHz">-73</integer> |
| <integer translatable="false" name="config_wifi_framework_wifi_score_good_rssi_threshold_24GHz">-60</integer> |
| <integer translatable="false" name="config_wifiFrameworkScoreBadRssiThreshold6ghz">-80</integer> |
| <integer translatable="false" name="config_wifiFrameworkScoreEntryRssiThreshold6ghz">-77</integer> |
| <integer translatable="false" name="config_wifiFrameworkScoreLowRssiThreshold6ghz">-70</integer> |
| <integer translatable="false" name="config_wifiFrameworkScoreGoodRssiThreshold6ghz">-57</integer> |
| |
| <!-- Integer delay in milliseconds before shutting down soft AP when there |
| are no connected devices. --> |
| <integer translatable="false" name="config_wifiFrameworkSoftApShutDownTimeoutMilliseconds">600000</integer> |
| |
| |
| <!-- Integer indicating maximum hardware supported client number of soft ap --> |
| <integer translatable="false" name="config_wifiHardwareSoftapMaxClientCount">16</integer> |
| |
| <string translatable="false" name="config_wifi_random_mac_oui">DA-A1-19</string> |
| |
| <!-- List of allowed channels in 2GHz band for softap. If the device doesn't want to restrict |
| channels this should be empty. Values is a comma separated channel string and/or channel |
| range string like '1-6,11'. --> |
| <string translatable="false" name="config_wifiSoftap2gChannelList">1,6,11</string> |
| |
| <!-- List of allowed channels in 5GHz band for softap. If the device doesn't want to restrict |
| channels this should be empty. Values is a comma separated channel string and/or channel |
| range string like '36-48,149'. --> |
| <string translatable="false" name="config_wifiSoftap5gChannelList"></string> |
| |
| <!-- List of allowed channels in 6GHz band for softap. If the device doesn't want to restrict |
| channels this should be empty. Values is a comma separated channel string and/or channel |
| range string like '36-48,149'. --> |
| <string translatable="false" name="config_wifiSoftap6gChannelList"></string> |
| |
| <!-- Integer indicating associated full scan max num active channels --> |
| <integer translatable="false" name="config_wifi_framework_associated_partial_scan_max_num_active_channels">6</integer> |
| |
| <!-- Integer delay in milliseconds before set wlan interface up during watchdog recovery --> |
| <integer translatable="false" name="config_wifi_framework_recovery_timeout_delay">2000</integer> |
| |
| <!-- Boolean indicating associated network selection is allowed --> |
| <bool translatable="false" name="config_wifi_framework_enable_associated_network_selection">true</bool> |
| |
| <!-- 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> |
| |
| <!-- Boolean indicating that wifi only link configuratios that have exact same credentials (i.e PSK) --> |
| <bool translatable="false" name="config_wifi_only_link_same_credential_configurations">true</bool> |
| |
| <!-- Boolean indicating whether framework needs to set the tx power limit for meeting SAR requirements --> |
| <bool translatable="false" name="config_wifi_framework_enable_sar_tx_power_limit">false</bool> |
| |
| <!-- Boolean indicating whether framework should use detection of softAP mode to set the tx |
| power limit for meeting SAR requirements --> |
| <bool translatable="false" name="config_wifi_framework_enable_soft_ap_sar_tx_power_limit">false</bool> |
| |
| <!-- Wifi Hal supports force client disconnect for softap --> |
| <bool translatable="false" name="config_wifiSofapClientForceDisconnectSupported">true</bool> |
| |
| <!-- Wifi driver supports Automatic channel selection (ACS) for softap --> |
| <bool translatable="false" name="config_wifi_softap_acs_supported">false</bool> |
| |
| <!-- Wifi driver supports WPA3 Simultaneous Authentication of Equals (WPA3-SAE) for softap --> |
| <bool translatable="false" name="config_wifi_softap_sae_supported">false</bool> |
| |
| <!-- Wifi driver supports IEEE80211AC for softap --> |
| <bool translatable="false" name="config_wifi_softap_ieee80211ac_supported">false</bool> |
| |
| <!-- Wifi driver supports IEEE80211AX for softap --> |
| <bool translatable="false" name="config_wifiSoftapIeee80211axSupported">false</bool> |
| |
| <!-- Wifi driver supports IEEE80211AX single user beamformer for softap --> |
| <bool translatable="false" name="config_wifiSoftapHeSuBeamformerSupported">false</bool> |
| |
| <!-- Wifi driver supports IEEE80211AX single user beamformee for softap --> |
| <bool translatable="false" name="config_wifiSoftapHeSuBeamformeeSupported">false</bool> |
| |
| <!-- Wifi driver supports IEEE80211AX multiple user beamformer for softap --> |
| <bool translatable="false" name="config_wifiSoftapHeMuBeamformerSupported">false</bool> |
| |
| <!-- Wifi driver supports IEEE80211AX TWT (Target Wake Time) for softap --> |
| <bool translatable="false" name="config_wifiSoftapHeTwtSupported">false</bool> |
| |
| <!-- Wifi driver supports 6GHz band for softap --> |
| <bool translatable="false" name="config_wifiSoftap6ghzSupported">false</bool> |
| |
| <!-- Indicates that local-only hotspot should be brought up at 5GHz. This option is |
| for automotive builds only (the one that have PackageManager#FEATURE_AUTOMOTIVE) --> |
| <bool translatable="false" name="config_wifi_local_only_hotspot_5ghz">false</bool> |
| |
| <!-- Indicates that connected MAC randomization is supported on this device --> |
| <bool translatable="false" name="config_wifi_connected_mac_randomization_supported">false</bool> |
| |
| <!-- Indicates that p2p MAC randomization is supported on this device --> |
| <bool translatable="false" name="config_wifi_p2p_mac_randomization_supported">false</bool> |
| |
| <!-- Indicates that AP mode MAC randomization is supported on this device --> |
| <bool translatable="false" name="config_wifi_ap_mac_randomization_supported">true</bool> |
| |
| <!-- list of SSIDs to enable aggressive MAC randomization on --> |
| <string-array translatable="false" name="config_wifi_aggressive_randomization_ssid_allowlist"> |
| <!-- SSIDs are expected in quoted format: |
| <item>\"SSID_1\"</item> |
| <item>\"SSID_2\"</item> |
| --> |
| </string-array> |
| |
| <!-- list of SSIDs to disable aggressive MAC randomization on. If a SSID is in both the |
| allowlist and blocklist, then aggressive MAC randomization will still be disabled. --> |
| <string-array translatable="false" name="config_wifi_aggressive_randomization_ssid_blocklist"> |
| <!-- SSIDs are expected in quoted format: |
| <item>\"SSID_1\"</item> |
| <item>\"SSID_2\"</item> |
| --> |
| </string-array> |
| |
| <!-- Indicates that wifi link probing is supported on this device --> |
| <bool translatable="false" name="config_wifi_link_probing_supported">false</bool> |
| |
| <!-- Indicates that contiguous 160MHz mode is supported on this device --> |
| <bool translatable="false" name="config_wifi_contiguous_160mhz_supported">false</bool> |
| |
| <!-- Integer indicating the max number of spatial streams supported on this device --> |
| <integer translatable="false" name="config_wifi_max_num_spatial_stream_supported">2</integer> |
| |
| <!-- Configure wifi tcp buffersizes in the form: |
| rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max --> |
| <string name="config_wifi_tcp_buffers" translatable="false">524288,1048576,2097152,262144,524288,1048576</string> |
| |
| <!-- Do not translate. Default access point SSID used for tethering --> |
| <string name="wifi_tether_configure_ssid_default" translatable="false">AndroidAP</string> |
| <!-- Do not translate. Default access point SSID used for local only hotspot --> |
| <string name="wifi_localhotspot_configure_ssid_default" translatable="false">AndroidShare</string> |
| |
| <!-- Indicates that a full bugreport should be triggered when wifi diagnostics detects an error on non-user (i.e debug) builds --> |
| <bool translatable="false" name="config_wifi_diagnostics_bugreport_enabled">false</bool> |
| |
| <!-- Indicates that wifi watchdog is enabled on this device --> |
| <bool translatable="false" name="config_wifi_watchdog_enabled">true</bool> |
| |
| <!-- |
| Controls the mapping between RSSI and RSSI levels. |
| |
| RSSI RSSI Level |
| (-infinity, thresholds[0]) 0 |
| [threshold[0], threshold[1]) 1 |
| [threshold[1], threshold[2]) 2 |
| ... ... |
| [threshold[len-2], threshold[len-1]) len-1 |
| [threshold[len-1], +infinity) len |
| |
| where: |
| [a, b) is the range of integers `n` such that a <= n < b |
| `threshold[i]` represents the i'th element of the config_wifiRssiLevelThresholds array |
| and `len` is the length of the config_wifiRssiLevelThresholds array. |
| --> |
| <integer-array translatable="false" name="config_wifiRssiLevelThresholds"> |
| <!-- RSSI RSSI Level --> |
| <item>-88</item> <!-- (-infinity, -88) 0 --> |
| <item>-77</item> <!-- [-88, -77) 1 --> |
| <item>-66</item> <!-- [-77, -66) 2 --> |
| <item>-55</item> <!-- [-66, -55) 3 --> |
| <!-- [-55, +infinity) 4 --> |
| </integer-array> |
| |
| <!-- Array describing scanning schedule in seconds when device is disconnected and screen is on --> |
| <integer-array translatable="false" name="config_wifiDisconnectedScanIntervalScheduleSec"> |
| <item>20</item> |
| <item>40</item> |
| <item>80</item> |
| <item>160</item> |
| </integer-array> |
| |
| <!-- Array describing scanning schedule in seconds when device is connected and screen is on --> |
| <integer-array translatable="false" name="config_wifiConnectedScanIntervalScheduleSec"> |
| <item>20</item> |
| <item>40</item> |
| <item>80</item> |
| <item>160</item> |
| </integer-array> |
| |
| <!-- Array describing scanning schedule in seconds when device is connected and screen is on |
| and the connected network is the only saved network. |
| When this array is set to an empty array, the noraml connected scan schedule defined |
| in config_wifiConnectedScanIntervalScheduleSec will be used --> |
| <integer-array translatable="false" name="config_wifiSingleSavedNetworkConnectedScanIntervalScheduleSec"> |
| </integer-array> |
| |
| <!-- List of constants that indicate the number of consecutive failures per type needed to block a BSSID. |
| A blocked BSSID will not be considered in network selection and firmware roaming.--> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorApUnableToHandleNewStaThreshold"> 1 </integer> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorNetworkValidationFailureThreshold"> 1 </integer> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorWrongPasswordThreshold"> 1 </integer> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorEapFailureThreshold"> 1 </integer> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorAssociationRejectionThreshold"> 3 </integer> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorAssociationTimeoutThreshold"> 3 </integer> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorAuthenticationFailureThreshold"> 3 </integer> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorDhcpFailureThreshold"> 3 </integer> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorAbnormalDisconnectThreshold"> 3 </integer> |
| |
| <!-- Base duration to block a BSSID after consecutive failures happen. (default = 5 mins) |
| The blocklist duration is increased exponentially for a BSSID that consecutively gets added to the blocklist. |
| ie. 5/10/20/40/... up to the upper limit defined by config_wifiBssidBlocklistMonitorMaxBlockDurationMs --> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorBaseBlockDurationMs"> 300000 </integer> |
| |
| <!-- The failure streak is the number of times a BSSID consecutively gets blocked without ever |
| successfully connecting in between, and is used to calculate the exponentially growing blocklist time. |
| Any BSSID with failure streak greater than the failure streak cap will be blocked for |
| config_wifiBssidBlocklistMonitorMaxBlockDurationMs. --> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorFailureStreakCap"> 7 </integer> |
| |
| <!-- The maximum duration to block a BSSID (default = 18 hours) --> |
| <integer translatable="false" name="config_wifiBssidBlocklistMonitorMaxBlockDurationMs"> 64800000 </integer> |
| |
| <!-- If a non-locally generated disconnect happens within this time window after association, |
| then count it as a failure with reason code REASON_ABNORMAL_DISCONNECT (default = 30 seconds) --> |
| <integer translatable="false" name="config_wifiBssidBlocklistAbnormalDisconnectTimeWindowMs"> 30000 </integer> |
| |
| <!-- Indicates that hidden networks are to be scanned during scan only mode --> |
| <bool translatable="false" name="config_wifiScanHiddenNetworksScanOnlyMode">false</bool> |
| |
| <!-- Enable logging WifiIsUnusableEvent in metrics which gets triggered when wifi becomes unusable. --> |
| <bool translatable="false" name="config_wifiIsUnusableEventMetricsEnabled">true</bool> |
| |
| <!-- The minimum number of txBad the framework has to observe to trigger a wifi data stall. --> |
| <integer translatable="false" name="config_wifiDataStallMinTxBad">1</integer> |
| |
| <!-- The minimum number of txSuccess the framework has to observe |
| to trigger a wifi data stall when rxSuccess is 0. --> |
| <integer translatable="false" name="config_wifiDataStallMinTxSuccessWithoutRx">50</integer> |
| |
| <!-- Enable logging Wifi LinkSpeedCounts in metrics. --> |
| <bool translatable="false" name="config_wifiLinkSpeedMetricsEnabled">true</bool> |
| |
| <!-- Enable the PNO frequency culling optimization. --> |
| <bool translatable="false" name="config_wifiPnoFrequencyCullingEnabled">true</bool> |
| |
| <!-- Enable the PNO frequency culling optimization. --> |
| <bool translatable="false" name="config_wifiPnoRecencySortingEnabled">true</bool> |
| |
| <!-- Suspend optimization. --> |
| <bool translatable="false" name="config_wifiSuspendOptimizationsEnabled">true</bool> |
| |
| <!-- The interval in milliseconds at which wifi rtt ranging requests will be throttled when |
| they are coming from the background apps (default = 30 mins). --> |
| <integer translatable="false" name="config_wifiRttBackgroundExecGapMs">1800000</integer> |
| |
| <!-- Integer indicating the RSSI and link layer stats polling interval in milliseconds when device is connected and screen is on --> |
| <integer translatable="false" name="config_wifiPollRssiIntervalMilliseconds">3000</integer> |
| </resources> |