Commit graph

58 commits

Author SHA1 Message Date
Bob Wang
6f968134c4 Merge "Add min uwb initiation time as new vendor capability." into tm-mainline-prod 2023-04-04 20:01:56 +00:00
ziyiw
2f83e56e61 Add min uwb initiation time as new vendor capability.
Test: manual
Bug: 245854896
Change-Id: I640b54356d4a7dc338d995596147aa6716278b54
2023-04-03 20:31:44 +00:00
Roshan Pius
9bd47ef77c uwb[aidl]: Added LAST_STS_INDEX_USED config into CCC open ranging params
Add LAST_STS_INDEX_USED to CCC ranging

Bug: 268762844
Test: test CCC
Change-Id: I56514e7d7d0c927e6bf8e257547f7baeadd3770c
2023-03-27 09:40:12 -07:00
ziyiw
fbe75bbcf1 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
Change-Id: I4cbf2443d7e3ec914ee465d9128fef5225a74712
2023-03-14 00:17:23 +00:00
Ayush Jain
471879fcfe Merge "Add a Vendor-dependent UCI Reason code for UWB OFF" into tm-mainline-prod 2023-03-03 22:41:43 +00:00
Ayush Jain
ff9268b13b 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
2023-03-01 23:00:44 +00:00
Ayush Jain
3f884a8b91 Add a Vendor dependent UCI Status code for UWB OFF
Add a UCI status code for 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: I5f86007776479fefe2d3b3e36d16ef628f92cebd
2023-03-01 19:53:12 +00:00
ziyiw
40bc040455 Change the unit of slot duration from ms to rstu.
Test: compile
Bug: 266980744
Change-Id: Iba643094f9d44293e47b68487aeae30847af4826
2023-02-23 04:09:36 +00:00
ziyiw
e7613eb815 [UWB HAL] Add new capability and reason code to show the channels that are capable for AoA.
Test: compile
Bug: 242951474
Change-Id: I307062b7ded64014327549e8c4a717d53e97f54b
2023-02-16 21:56:19 +00:00
ziyiw
9bf67194db Add the unit of slot duration to its name.
Test: compile
Bug: 266980744
Change-Id: I1418b7a1b9e938b03e785cb1b2b4c92a8f4c9ecf
2023-02-16 21:50:32 +00:00
ziyiw
0891de19e6 Add supported maximum number of ranging session as capability.
Test: compile
Bug: 259493075
Change-Id: Ibe7edb84c968b70be62059bb0bb6ffeedfa4bad6
2022-12-01 19:37:32 +00:00
ziyiw
f5535531e7 Add a new capability to indcate min slot duration.
Test: compile
Bug: 254655623
Change-Id: Icac53069ddc61bbd60049880119973f1b4b0286d
2022-11-09 21:53:38 +00:00
Roshan Pius
778ddca75a uwb(hal): Doc update to clarify country code payload of 00
Bug: 243426975
Change-Id: I6ec56c68df5e1049d93c31e498934501f7d75ad1
Test: N/A
2022-08-23 16:13:52 +00:00
ziyiw
d5796d6576 Add Diagnostics Oid in HAL.
Test: compile
Bug: 236969605
Change-Id: Idc44d73f31dc23d4dfaf4f461d8c312338421234
2022-07-27 20:26:21 +00:00
ziyiw
6d25b825e8 Add new capability TLV and config TLV for supported diagnostics.
Test: Compile
Bug: 236969605
Change-Id: I9cd3e442857cf8691420f7d3f3386f1aa45a78a2
2022-07-07 23:40:08 +00:00
ziyiw
2da346d0d5 Add new capability TLV for supported RSSI reporting
Test: Compile
Bug: 236720553
Change-Id: Iae490f193c7e613ef8c9ee03784563b3286182bb
2022-06-24 22:12:53 +00:00
Roshan Pius
d32a5ed842 uwb(hal): Add a new capability TLV for supported rng ntf thresholds
Bug: 235355249
Test: Compiles
Change-Id: I44dd28b0b3ff5cfe6bf227e4cad917edfce10262
2022-06-22 14:51:45 -07:00
TreeHugger Robot
73c8adc6a9 Merge "uwb(hal): Add a new capability TLV for min ranging interval" into tm-mainline-prod 2022-06-16 23:42:44 +00:00
Roshan Pius
d6a1025c62 uwb(hal): Add a new capability TLV for min ranging interval
Bug: 235488259
Test: Compiles
Change-Id: I7f0c6d9b68ea3a1ba31911a031f2e7ee24c9d331
2022-06-13 20:54:27 +00:00
Roshan Pius
3ba0e635e1 uwb(vts): Close HAL at end of each test
Bug: 235558748
Test: atest VtsHalUwbTargetTest
Change-Id: I5361baab1f9204052e0f625b3c17242fbfe66190
2022-06-10 20:03:18 +00:00
Jiyong Park
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09:00
Alain Michaud
2e2c6e7b31 uwb(hal): Adding support for host tests.
Adding support for building hosts tests using the HAL interface.

Bug: 216784920
Test: atest --host libuwb_uci_packet_tests
Change-Id: I3e855b8b7bf203fc4f9769327348bfc3d1e10796
2022-03-17 14:51:39 +00:00
Roshan Pius
88561d9380 uwb(hal): Add 2 CCC specific error codes in vendor portion
Note: This update is in the types-only package that we plan to update
throughout the year.

Bug: 222291913
Test: Compiles
Change-Id: Iffc7532a86f3beb6b9f745faf4a523d6d0017542
2022-03-10 10:31:14 -08:00
Roshan Pius
8974cbcdd7 uwb(hal): Fix typo in pulse shape combo caps
This does not align with the values defined in
UwbVendorCapabilityTlvValues.aidl.

Bug: 221001452
Test: Compiles
Change-Id: I41d4850e5455ec6679af5edfa0e510d20439a651
2022-02-23 09:00:01 -08:00
Roshan Pius
89791a7891 uwb(hal): Modify TLV value size for interleaving params
Bug: 220173516
Test: Compiles
Change-Id: Idf26f6d4adbbc79f4f1f260aa8b8c608f3391b98
2022-02-22 10:09:35 -08:00
Roshan Pius
8db34352b7 uwb(hal): Switch ANDROID GID to 0xC
Based on vendor feedback since 0xE is already being used for a bunch of
vendor specific stuff.

Bug: 210933436
Bug: 218883784
Test: Compiles
Change-Id: I49b5018569164a52fa7c9f78ca9c69a181747f44
2022-02-10 10:54:31 -08:00
Roshan Pius
62b89b1670 uwb(hal): Some changes to the CCC capabilities to align with latest proposals in standards body
Bug: 208678993
Bug: 209053358
Change-Id: I6610b106323db4ceab047b34b91aaa13a1a7f83d
Test: Compiles
2022-02-08 15:31:33 -08:00
Roshan Pius
b44de0093b uwb(hal): Remove getAndroidCapabilities HAL API
This is unnecessary since we are anyway using GET_CAPS_INFO for querying
non-fira capabilities.

Bug: 208678993
Bug: 209053358
Test: Compiles
Change-Id: Id9af03b313ceaf00fb6d5231c454dc7c74a6287a
2022-02-07 08:35:57 -08:00
Roshan Pius
5ea2d1799c uwb(hal): Add an android specifci aoa_result_req value
This is needed for supporting antenna interleaving feature.

Bug: 205730040
Test: Compiles
Change-Id: I06696c1624cbe5af67124ae5f807ef0bcc983194
2022-02-04 13:13:35 -08:00
Roshan Pius
1b538f5363 uwb(hal): Remove FIRA params from the HAL interface
Reworking based on vendor feedback.  There is already some FIRA standards
body activity to add this in the FIRA specifications. So, defer to that
spec instead of redefinining it in the HAL interface.

Bug: 208678993
Bug: 209053358
Test: Compiles
Change-Id: I20c4ecb84d2efbecac76c40864d9f97cf9987da6
2022-01-31 10:26:40 -08:00
Roshan Pius
b0a6c0bd20 uwb(hal): Add device capability TLV values
Resolving a review comment from ag/16739541.

Bug: 208678993
Test: Compiles
Change-Id: I19ae20e37ab6ef0bf8f7db473b977e8dac872d0d
2022-01-28 13:37:56 -08:00
Roshan Pius
d43080da7a uwb(hal): Add device capability TLV types
Also, rename UwbVendorSessionSetAppConfigCmdParams to a more generic
UwbVendorSessionAppConfigTlvTypes because it used in SET_APP_CONFIG &
GET_APP_CONFIG cmds.

Bug: 208678993
Test: Compiles
Change-Id: Iaad3788eee1948feb369b5f8fb4076c2f2479d10
2022-01-28 05:25:08 +00:00
Roshan Pius
1c0febea78 uwb(hal): Add 2 new CCC param ids under vendor interface
Bug: 208678993
Test: Compiles
Change-Id: I3043d30b1c1566786faf0dfbe6df74d7e3119720
2022-01-26 10:22:46 -08:00
Roshan Pius
981bb666a2 uwb(hal): Set sdk to Tiramisu
Bug: 215526504
Test: Compiles
Change-Id: I4f3762545a22688d5432162c0fb2b1599f4d3758
2022-01-20 18:39:10 +00:00
TreeHugger Robot
46b8a47444 Merge "uwb(hal): Add HAL API for session initialization" 2021-12-10 18:11:45 +00:00
Roshan Pius
f2c2939b98 uwb(hal): Add HAL API for session initialization
Bug: 209990508
Test: atest VtsHalUwbTargetTest
Change-Id: I7d10062cb3854ab39717d93a6eadba9dde99330d
2021-12-10 01:29:15 +00:00
Roshan Pius
0d8bf1034f Merge "uwb(hal): Add SET_APP_CONFIG params for interleaving ratio" 2021-12-07 15:07:58 +00:00
Roshan Pius
f996b7c87b uwb(hal): Add SET_APP_CONFIG params for interleaving ratio
This is defined in the vendor space since it has not been defined in
the FIRA standards yet (even though the AOA_RESULT_REQ = 0xF0 has been
accepted into the specification).

Bug: 205730040
Test: Compiles
Change-Id: Ib4106f123a2edf6ed00128985914a5bd932e249e
2021-12-02 07:14:55 -08:00
Roshan Pius
26eef12a00 uwb(hal): Add a OID for country code set
Bug: 205787337
Test: Compiles
Change-Id: Ie0cf91a5725fd58e26af884f7a5d2fdb0fd7fc81
2021-11-18 13:36:22 -08:00
Kai Shi
fdbe1d3b5c Merge "Add OID for the power related stats" 2021-11-12 22:44:26 +00:00
Kai Shi
58e292b551 Add OID for the power related stats
Add Android specific OID for the power related stats.

Bug: 199768480
Test: compile
Change-Id: I65701663be48b9528c5a7b2c88743ec567b45b6b
2021-11-10 19:21:58 -08:00
Roshan Pius
a881697d11 Merge "Move uwb owners file to top-level" 2021-11-10 22:47:00 +00:00
TreeHugger Robot
9c18ff2006 Merge "uwb(hal): Add CCC session type SESSION_INIT_CMD" 2021-11-10 22:28:28 +00:00
Roshan Pius
a55560f5dc Move uwb owners file to top-level
Bug: None
Test: N/A
Change-Id: Ifa6cb7eac60c38edb038cbf7316a4f852f3e8f08
2021-11-10 13:47:18 -08:00
TreeHugger Robot
dea858df8e Merge "Add min_sdk for uwb HAL rust stubs" 2021-11-10 19:28:04 +00:00
Roshan Pius
95e059e084 uwb(hal): Add CCC session type SESSION_INIT_CMD
Bug: 197886322
Test: Compiles
Change-Id: I7204f49ffc0ef7064074443b637764299e49c6d2
2021-11-10 09:55:20 -08:00
ziyiw
e53cfcaa99 Add min_sdk for uwb HAL rust stubs
Test: mmm
Bug: 197341298
Change-Id: Ifda42345a83e26c1ba31bfb76b4aa610e7577997
2021-11-09 16:41:22 +00:00
Roshan Pius
1e1c842867 uwb(hal): Add a capabilities mechanism for vendor commands
For the vendor commands defined for Android, allow UWB chip vendors to
optionally expose some of the features defined in a given version.

Without this mechanism, any vendor commands added has to be supported by
all chip vendors unconditionally (which may not be feasible based on
hardware capabilities).

Bug: 197886322
Test: Compiles

Change-Id: I917f2dc0d203ba9304f58955ac3cdb9d1735106c
2021-11-05 13:34:59 -07:00
Roshan Pius
efff0ebc51 uwb(hal): Add doc for the vendor command versioning scheme
Bug: 197886322
Test: Compiles
Change-Id: I25a6bc7d3db1a836c71900a480d8d3fbeb47306a
2021-10-20 09:37:26 -07:00
Roshan Pius
a47f2a3eb8 uwb: Change readme.txt to README.md
Bug: 197886322
Test: Compiles
Change-Id: I30c0c6c3a0d807130f574d4d59aba89d3ffabea4
2021-10-18 14:16:12 -07:00