From 291e1c2ea35b39c4eb3bc63f95e835ff629580d9 Mon Sep 17 00:00:00 2001 From: kuanyuhuang Date: Fri, 6 Jan 2023 09:02:36 +0000 Subject: [PATCH] Bluetooth: add BT SAR tables Bluetooth SAR tables are for setting tx power of Bluetooth Bug: 264631351 Test: build and check log of reading SAR table Change-Id: I0025c9328b4b6b0b290909fe7a70a36975e3817a --- bluetooth/bluetooth_power_limits_tangorpro.csv | 2 ++ .../bluetooth_power_limits_tangorpro_GTU8P_CA.csv | 2 ++ .../bluetooth_power_limits_tangorpro_GTU8P_EU.csv | 2 ++ .../bluetooth_power_limits_tangorpro_GTU8P_JP.csv | 2 ++ .../bluetooth_power_limits_tangorpro_GTU8P_US.csv | 2 ++ bluetooth/syna_default.mk | 11 ++++++++++- 6 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 bluetooth/bluetooth_power_limits_tangorpro.csv create mode 100644 bluetooth/bluetooth_power_limits_tangorpro_GTU8P_CA.csv create mode 100644 bluetooth/bluetooth_power_limits_tangorpro_GTU8P_EU.csv create mode 100644 bluetooth/bluetooth_power_limits_tangorpro_GTU8P_JP.csv create mode 100644 bluetooth/bluetooth_power_limits_tangorpro_GTU8P_US.csv diff --git a/bluetooth/bluetooth_power_limits_tangorpro.csv b/bluetooth/bluetooth_power_limits_tangorpro.csv new file mode 100644 index 0000000..826f182 --- /dev/null +++ b/bluetooth/bluetooth_power_limits_tangorpro.csv @@ -0,0 +1,2 @@ +Head,BTHotspot,WIFI5Ghz,HotspotVoice,Cell,IMU,BDR_Single_Chain_0,EDR_Single_Chain_0,BLE_Single_Chain_0,BDR_Single_Chain_1,EDR_Single_Chain_1,BLE_Single_Chain_1,BDR_Dual_Chain_0,EDR_Dual_Chain_0,BLE_Dual_Chain_0,BDR_Dual_Chain_1,EDR_Dual_Chain_1,BLE_Dual_Chain_1 +any,any,any,any,any,any,61,27,19,61,27,19,61,27,19,61,27,19 diff --git a/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_CA.csv b/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_CA.csv new file mode 100644 index 0000000..995f6f5 --- /dev/null +++ b/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_CA.csv @@ -0,0 +1,2 @@ +Head,BTHotspot,WIFI5Ghz,HotspotVoice,Cell,IMU,BDR_Single_Chain_0,EDR_Single_Chain_0,BLE_Single_Chain_0,BDR_Single_Chain_1,EDR_Single_Chain_1,BLE_Single_Chain_1,BDR_Dual_Chain_0,EDR_Dual_Chain_0,BLE_Dual_Chain_0,BDR_Dual_Chain_1,EDR_Dual_Chain_1,BLE_Dual_Chain_1 +any,any,any,any,any,any,61,61,56,61,61,56,61,61,56,61,61,56 diff --git a/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_EU.csv b/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_EU.csv new file mode 100644 index 0000000..d044ee9 --- /dev/null +++ b/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_EU.csv @@ -0,0 +1,2 @@ +Head,BTHotspot,WIFI5Ghz,HotspotVoice,Cell,IMU,BDR_Single_Chain_0,EDR_Single_Chain_0,BLE_Single_Chain_0,BDR_Single_Chain_1,EDR_Single_Chain_1,BLE_Single_Chain_1,BDR_Dual_Chain_0,EDR_Dual_Chain_0,BLE_Dual_Chain_0,BDR_Dual_Chain_1,EDR_Dual_Chain_1,BLE_Dual_Chain_1 +any,any,any,any,any,any,62,35,19,62,35,19,62,35,19,62,35,19 diff --git a/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_JP.csv b/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_JP.csv new file mode 100644 index 0000000..389c01b --- /dev/null +++ b/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_JP.csv @@ -0,0 +1,2 @@ +Head,BTHotspot,WIFI5Ghz,HotspotVoice,Cell,IMU,BDR_Single_Chain_0,EDR_Single_Chain_0,BLE_Single_Chain_0,BDR_Single_Chain_1,EDR_Single_Chain_1,BLE_Single_Chain_1,BDR_Dual_Chain_0,EDR_Dual_Chain_0,BLE_Dual_Chain_0,BDR_Dual_Chain_1,EDR_Dual_Chain_1,BLE_Dual_Chain_1 +any,any,any,any,any,any,61,27,28,61,27,28,61,27,28,61,27,28 diff --git a/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_US.csv b/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_US.csv new file mode 100644 index 0000000..995f6f5 --- /dev/null +++ b/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_US.csv @@ -0,0 +1,2 @@ +Head,BTHotspot,WIFI5Ghz,HotspotVoice,Cell,IMU,BDR_Single_Chain_0,EDR_Single_Chain_0,BLE_Single_Chain_0,BDR_Single_Chain_1,EDR_Single_Chain_1,BLE_Single_Chain_1,BDR_Dual_Chain_0,EDR_Dual_Chain_0,BLE_Dual_Chain_0,BDR_Dual_Chain_1,EDR_Dual_Chain_1,BLE_Dual_Chain_1 +any,any,any,any,any,any,61,61,56,61,61,56,61,61,56,61,61,56 diff --git a/bluetooth/syna_default.mk b/bluetooth/syna_default.mk index fe3c67d..ca6109e 100644 --- a/bluetooth/syna_default.mk +++ b/bluetooth/syna_default.mk @@ -20,7 +20,16 @@ DEVICE_MANIFEST_FILE += \ BOARD_SEPOLICY_DIRS += device/google/tangorpro-sepolicy/bluetooth PRODUCT_PACKAGES += android.hardware.bluetooth@1.1-service.synabtlinux # Bluetooth SAR test tools -PRODUCT_PACKAGES_DEBUG += bluetooth_sar_test +PRODUCT_PACKAGES_DEBUG += bt_sar_test + +# Bluetooth Tx power caps +PRODUCT_COPY_FILES += \ + device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \ + device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_CA.csv \ + device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_EU.csv \ + device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_JP.csv \ + device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_US.csv \ + # default BDADDR for EVB only PRODUCT_PROPERTY_OVERRIDES += \ ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"