From 7947eaa26696b0d9fa85348c90b381d2c1768126 Mon Sep 17 00:00:00 2001 From: James Eidson Date: Thu, 23 May 2024 22:49:28 +0000 Subject: [PATCH] [uwb-hal] add antenna mode app config param Bug: 341159131 Test: n/a Change-Id: I37c8f502f6148f3fd70a2f0da69da4701c0dda98 --- .../fira_android/UwbVendorSessionAppConfigTlvTypes.aidl | 1 + .../fira_android/UwbVendorSessionAppConfigTlvTypes.aidl | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl b/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl index d02cf4da1a..bb543f2b3d 100644 --- a/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl +++ b/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl @@ -46,4 +46,5 @@ enum UwbVendorSessionAppConfigTlvTypes { NB_OF_ELEVATION_MEASUREMENTS = 0xE5, ENABLE_DIAGNOSTICS = 0xE8, DIAGRAMS_FRAME_REPORTS_FIELDS = 0xE9, + ANTENNA_MODE = 0xEA, } diff --git a/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl b/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl index 65bb1c9bbd..b8b4490f5c 100644 --- a/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl +++ b/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl @@ -87,4 +87,12 @@ enum UwbVendorSessionAppConfigTlvTypes { * b3 - b7: RFU */ DIAGRAMS_FRAME_REPORTS_FIELDS = 0xE9, + + /** + * 1 byte data + * 0x0: Omni mode - the ranging antenna is used for both Tx and Rx. + * 0x1: Directional mode - the patch antenna is used for both Tx and Rx. + * 0x2 - 0xFF: RFU + */ + ANTENNA_MODE = 0xEA, }