Merge "Integrate wifi configuraions for tangorpro" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot 2022-05-19 08:29:39 +00:00 committed by Android (Google) Code Review
commit ed924014c3
10 changed files with 225 additions and 372 deletions

View file

@ -29,6 +29,10 @@ include hardware/google/pixel/vibrator/cs40l26/device.mk
$(call soong_config_set,lyric,tuning_product,cloudripper)
$(call soong_config_set,google3a_config,target_device,cloudripper)
DEVICE_PACKAGE_OVERLAYS += device/google/tangorpro/tangorpro/overlay
PRODUCT_SOONG_NAMESPACES += device/google/tangorpro
PRODUCT_PACKAGES += WifiOverlayT6pro
# Init files
PRODUCT_COPY_FILES += \
device/google/tangorpro/conf/init.tangorpro.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.tangorpro.rc
@ -145,7 +149,3 @@ endif
# DCK properties based on target
PRODUCT_PROPERTY_OVERRIDES += \
ro.gms.dck.eligible_wcc=2
# WIFI COEX
PRODUCT_COPY_FILES += \
device/google/tangorpro/wifi/coex_table.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/coex_table.xml

View file

@ -6,6 +6,7 @@
# Load device specific kernel modules
# Modules here will be loaded *after* all common modules
modprobe|synadhd.ko
modprobe|snd-soc-cs35l41-spi.ko
modprobe|ftm5.ko
modprobe|sec_touch.ko

View file

@ -0,0 +1,18 @@
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "//device/google/tangorpro:device_google_tangorpro_license""
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: [
"//device/google/tangorpro:device_google_tangorpro_license",
],
}
runtime_resource_overlay {
name: "WifiOverlayT6pro",
theme: "WifiOverlayT6pro",
certificate: "platform",
sdk_version: "current",
product_specific: true
}

View file

@ -0,0 +1,27 @@
<?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.
-->
<!-- Pixel specific wifi overlays -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.wifi.resources.pixel"
android:versionCode="1"
android:versionName="1.0">
<application android:hasCode="false" />
<overlay
android:targetPackage="com.android.wifi.resources"
android:targetName="WifiCustomization"
android:isStatic="true"
android:priority="1"/>
</manifest>

View file

@ -0,0 +1,4 @@
# People who can approve changes for submission
kumachang@google.com
wangroger@google.com
hsuvictor@google.com

View file

@ -0,0 +1,117 @@
<?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.
*/
-->
<resources>
<!-- Boolean indicating whether the wifi chipset has 5GHz frequency band support -->
<bool translatable="false" name="config_wifi5ghzSupport">true</bool>
<!-- Boolean indicating whether 802.11r Fast BSS Transition is enabled on this platform -->
<bool translatable="false" name="config_wifi_fast_bss_transition_enabled">true</bool>
<!-- Boolean indicating whether the wifi chipset has background scan support -->
<bool translatable="false" name="config_wifi_background_scan_support">true</bool>
<!-- Integer thresholds, do not connect to APs with RSSI lower than these values -->
<integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_5GHz">-77</integer>
<integer translatable="false" name="config_wifi_framework_wifi_score_entry_rssi_threshold_24GHz">-80</integer>
<!-- Integer thresholds for low network score, should be somewhat less than the entry thresholds -->
<integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_5GHz">-80</integer>
<integer translatable="false" name="config_wifi_framework_wifi_score_bad_rssi_threshold_24GHz">-83</integer>
<!-- 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>
<!-- 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">true</bool>
<!-- 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,2097152,8388608,262144,524288,4194304</string>
<!-- Enable ACS (auto channel selection) for Wifi hotspot (SAP) -->
<bool translatable="false" name="config_wifi_softap_acs_supported">true</bool>
<!-- Enable 802.11ac for Wifi hotspot (SAP) -->
<bool translatable="false" name="config_wifi_softap_ieee80211ac_supported">true</bool>
<!-- True if the firmware supports connected MAC randomization -->
<bool name="config_wifi_connected_mac_randomization_supported">true</bool>
<!-- True if the firmware supports p2p MAC randomization -->
<bool name="config_wifi_p2p_mac_randomization_supported">true</bool>
<!-- True if the firmware supports ap MAC randomization -->
<bool name="config_wifi_ap_mac_randomization_supported">true</bool>
<!-- True if the firmware supports Wi-Fi link probing -->
<bool name="config_wifi_link_probing_supported">true</bool>
<!-- 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">true</bool>
<!-- Default access point SSID used for tethering -->
<string name="wifi_tether_configure_ssid_default" translatable="false">Pixel</string>
<!-- Integer indicating maximum hardware supported client number of soft ap -->
<integer translatable="false" name="config_wifiHardwareSoftapMaxClientCount">32</integer>
<!-- Array indicating wifi fatal firmware alert error code list from driver -->
<array translatable="false" name="config_wifi_fatal_firmware_alert_error_code_list">
<item>1</item> <!-- ALERT_TX_STALL -->
<item>2</item> <!-- ALERT_RX_STALL -->
<item>3</item> <!-- ALERT_IOCTL_TIMEOUT -->
<item>8</item> <!-- ALERT_FW_QUEUE_STALL -->
</array>
<!-- Integer delay in milliseconds before set wlan interface up during watchdog recovery -->
<integer name="config_wifi_framework_recovery_timeout_delay">3000</integer>
<!-- Number of self recoveries to be attempted per hour. Any fatal errors beyond this will
cause the wifi stack to turn wifi off and wait for user input.
Set to 0 to turn off recovery attempts and always turn off wifi on failures -->
<integer translatable="false" name="config_wifiMaxNativeFailureSelfRecoveryPerHour">10</integer>
<!-- Wifi driver supports IEEE80211AX for softap -->
<bool translatable="false" name="config_wifiSoftapIeee80211axSupported">true</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">true</bool>
<!-- Wifi driver supports WPA3 Simultaneous Authentication of Equals (WPA3-SAE) for softap -->
<bool translatable="false" name="config_wifi_softap_sae_supported">true</bool>
<!-- Override channel utilization estimation with fixed value, disabled in brcm-based pixels -->
<bool translatable="false" name="config_wifiChannelUtilizationOverrideEnabled">false</bool>
<!-- Enable adding minimum confirmation duration when sending network score to connectivity service. -->
<bool translatable="false" name="config_wifiMinConfirmationDurationSendNetworkScoreEnabled">true</bool>
<!-- Indicates that SAE Hash-to-Element is supported on this device -->
<bool translatable="false" name="config_wifiSaeH2eSupported">true</bool>
<!-- Whether to use the explicit vendor HAL API: IWifiStaIface.setRoamingState for disabling fw roaming. -->
<bool translatable="false" name="config_wifiUseHalApiToDisableFwRoaming">true</bool>
<!-- Indicate the driver support NL80211_REG_CHANGED event. -->
<bool translatable="false" name="config_wifiDriverSupportedNl80211RegChangedEvent">true</bool>
</resources>

View file

@ -23,4 +23,4 @@ BOARD_KERNEL_CMDLINE += swiotlb=noforce
include device/google/gs201/BoardConfig-common.mk
-include vendor/google_devices/gs201/prebuilts/BoardConfigVendor.mk
include device/google/tangorpro-sepolicy/tangorpro-sepolicy.mk
include device/google/gs201/wifi/qcom/BoardConfig-wifi.mk
include device/google/tangorpro/wifi/BoardConfig-wifi.mk

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2022, 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.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- This device does not allow mobile data. -->
<bool name="config_mobile_data_capable">false</bool>
</resources>

30
wifi/BoardConfig-wifi.mk Normal file
View file

@ -0,0 +1,30 @@
#
# Copyright (C) 2021 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.
#
BOARD_WLAN_DEVICE := synadhd
BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_$(BOARD_WLAN_DEVICE)
WPA_SUPPLICANT_VERSION := VER_0_8_X
BOARD_WPA_SUPPLICANT_DRIVER := NL80211
BOARD_HOSTAPD_DRIVER := NL80211
# Wifi interface combination - {1 STA + 1 P2P} or {1 STA + 1 NAN} or {1 AP}
WIFI_HAL_INTERFACE_COMBINATIONS := {{{STA}, 1}, {{P2P, NAN}, 1}}, {{{AP}, 1}}
WIFI_FEATURE_WIFI_EXT_HAL := true
WIFI_FEATURE_IMU_DETECTION := true
# Avoid Wifi reset on MAC Address change
WIFI_AVOID_IFACE_RESET_MAC_CHANGE := true
WIFI_FEATURE_HOSTAPD_11AX := true

View file

@ -1,367 +0,0 @@
<table>
<entry>
<rat>LTE</rat>
<band>1</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>1</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>2</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
<intermodParams5g>
<N>-2</N>
<M>1</M>
<overlap>10</overlap>
</intermodParams5g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>2</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
<intermodParams5g>
<N>-2</N>
<M>1</M>
<overlap>10</overlap>
</intermodParams5g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>3</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
<intermodParams5g>
<N>-2</N>
<M>1</M>
<overlap>10</overlap>
</intermodParams5g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>3</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
<intermodParams5g>
<N>-2</N>
<M>1</M>
<overlap>10</overlap>
</intermodParams5g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>4</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
<intermodParams5g>
<N>-2</N>
<M>1</M>
<overlap>10</overlap>
</intermodParams5g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>5</band>
<params>
<harmonicParams2g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams2g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>5</band>
<params>
<harmonicParams2g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams2g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>7</band>
<params>
<neighborThresholds>
<wifiVictimMhz>50</wifiVictimMhz>
<cellVictimMhz>50</cellVictimMhz>
</neighborThresholds>
<intermodParams2g>
<N>2</N>
<M>-1</M>
<overlap>10</overlap>
</intermodParams2g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>7</band>
<params>
<neighborThresholds>
<wifiVictimMhz>50</wifiVictimMhz>
<cellVictimMhz>50</cellVictimMhz>
</neighborThresholds>
<intermodParams2g>
<N>2</N>
<M>-1</M>
<overlap>10</overlap>
</intermodParams2g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>18</band>
<params>
<harmonicParams2g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams2g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>18</band>
<params>
<harmonicParams2g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams2g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>19</band>
<params>
<harmonicParams2g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams2g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>25</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
<intermodParams5g>
<N>-2</N>
<M>1</M>
<overlap>10</overlap>
</intermodParams5g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>25</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
<intermodParams5g>
<N>-2</N>
<M>1</M>
<overlap>10</overlap>
</intermodParams5g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>26</band>
<params>
<harmonicParams2g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams2g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>26</band>
<params>
<harmonicParams2g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams2g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>27</band>
<params>
<harmonicParams2g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams2g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>38</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>38</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>39</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>39</band>
<params>
<harmonicParams5g>
<N>3</N>
<overlap>10</overlap>
</harmonicParams5g>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>40</band>
<params>
<neighborThresholds>
<wifiVictimMhz>50</wifiVictimMhz>
<cellVictimMhz>50</cellVictimMhz>
</neighborThresholds>
<defaultChannels>
<default2g>11</default2g>
</defaultChannels>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>40</band>
<params>
<neighborThresholds>
<wifiVictimMhz>50</wifiVictimMhz>
<cellVictimMhz>50</cellVictimMhz>
</neighborThresholds>
<defaultChannels>
<default2g>11</default2g>
</defaultChannels>
</params>
</entry>
<entry>
<rat>LTE</rat>
<band>41</band>
<params>
<neighborThresholds>
<wifiVictimMhz>50</wifiVictimMhz>
<cellVictimMhz>50</cellVictimMhz>
</neighborThresholds>
<harmonicParams5g>
<N>2</N>
<overlap>10</overlap>
</harmonicParams5g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>41</band>
<params>
<neighborThresholds>
<wifiVictimMhz>50</wifiVictimMhz>
<cellVictimMhz>50</cellVictimMhz>
</neighborThresholds>
<harmonicParams5g>
<N>2</N>
<overlap>10</overlap>
</harmonicParams5g>
</params>
</entry>
<entry>
<rat>NR</rat>
<band>79</band>
<override>
<override5g>
<category>all</category>
</override5g>
</override>
</entry>
</table>