Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 617c2baa authored by ziyiw's avatar ziyiw
Browse files

Add new reason code and status code for session conflict.

Also assigned a new number to the UWB regulation off status/reason code.

Test: compile
Bug: 272361935
Merged-In: I4cbf2443d7e3ec914ee465d9128fef5225a74712
Change-Id: Ib219ea213be050944a0bbd601f79ccbbba18f299
parent ce666fc1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -35,4 +35,6 @@ package android.hardware.uwb.fira_android;
@Backing(type="int") @VintfStability
enum UwbVendorReasonCodes {
  REASON_ERROR_INVALID_CHANNEL_WITH_AOA = 128,
  REASON_ERROR_STOPPED_DUE_TO_OTHER_SESSION_CONFLICT = 129,
  REASON_REGULATION_UWB_OFF = 130,
}
+2 −0
Original line number Diff line number Diff line
@@ -36,4 +36,6 @@ package android.hardware.uwb.fira_android;
enum UwbVendorStatusCodes {
  STATUS_ERROR_CCC_SE_BUSY = 80,
  STATUS_ERROR_CCC_LIFECYCLE = 81,
  STATUS_ERROR_STOPPED_DUE_TO_OTHER_SESSION_CONFLICT = 82,
  STATUS_REGULATION_UWB_OFF = 83,
}
+4 −0
Original line number Diff line number Diff line
@@ -31,4 +31,8 @@ enum UwbVendorReasonCodes {
    /** Fira specific */
    /** The channel requested is not available for AoA */
    REASON_ERROR_INVALID_CHANNEL_WITH_AOA = 0x80,
    /** UWB stopped caused by other session conflict */
    REASON_ERROR_STOPPED_DUE_TO_OTHER_SESSION_CONFLICT = 0x81,
    /** UWB has been disabled (eg: country code change leads to UWB unsupported) */
    REASON_REGULATION_UWB_OFF = 0x82,
}
+4 −0
Original line number Diff line number Diff line
@@ -33,4 +33,8 @@ enum UwbVendorStatusCodes {
    STATUS_ERROR_CCC_SE_BUSY = 0x50,
    /** CCC Lifecycle error */
    STATUS_ERROR_CCC_LIFECYCLE = 0x51,
    /** Other session conflict */
    STATUS_ERROR_STOPPED_DUE_TO_OTHER_SESSION_CONFLICT = 0x52,
    /** UWB Regulation Off */
    STATUS_REGULATION_UWB_OFF = 0x53,
}