From ff9268b13b8384df47a6dfffafbdd03cac03d0fc Mon Sep 17 00:00:00 2001 From: Ayush Jain Date: Wed, 1 Mar 2023 22:57:12 +0000 Subject: [PATCH] Add a Vendor-dependent UCI Reason code for UWB OFF Add a UCI reason code (sent in a SESSION_STATUS_NTF) for the scenario when UWB needs to be turned off due to Regulatory reasons. Ran the "m android.hardware.uwb.fira_android-update-api" command to update the generated AIDL API. Bug: 267554906 Test: Compile make.com.google.android.uwb Change-Id: I52d9f2dae203c3e2d3d26a8a5c30a2f2a969b591 --- .../hardware/uwb/fira_android/UwbVendorReasonCodes.aidl | 1 + .../hardware/uwb/fira_android/UwbVendorReasonCodes.aidl | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorReasonCodes.aidl b/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorReasonCodes.aidl index dc2252b789..d1f12569b8 100644 --- a/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorReasonCodes.aidl +++ b/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorReasonCodes.aidl @@ -35,4 +35,5 @@ package android.hardware.uwb.fira_android; @Backing(type="int") @VintfStability enum UwbVendorReasonCodes { REASON_ERROR_INVALID_CHANNEL_WITH_AOA = 128, + REASON_REGULATION_UWB_OFF = 129, } diff --git a/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorReasonCodes.aidl b/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorReasonCodes.aidl index ae203a3112..a64a18884d 100644 --- a/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorReasonCodes.aidl +++ b/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorReasonCodes.aidl @@ -24,11 +24,13 @@ package android.hardware.uwb.fira_android; @Backing(type="int") enum UwbVendorReasonCodes { /** - * Use values from the vendor specific reason code range: 0x80 – 0xFF defined in Table 16 of - * UCI specification. + * Use values from the vendor specific reason code range: 0x80 – 0xFF defined in + * Table 15 (state change with reason codes) of UCI specification. */ /** Fira specific */ /** The channel requested is not available for AoA */ REASON_ERROR_INVALID_CHANNEL_WITH_AOA = 0x80, + /** UWB has been disabled (eg: country code change leads to UWB unsupported) */ + REASON_REGULATION_UWB_OFF = 0x81, }