tools/btpclient: Add GATT support to get Device name
PATCH v2 1/1 tools/btpclient: Add GATT support to get Device name
The device name is retrieved during GATT connection, so no need to send a specific request, just need to send the name to PTS when the property is updated.
This allows to pass GAP/IDLE/NAMP/BV-01-C.
---
v1 -> v2: Fix memory leak
src/shared/btp.h | 18 +++++++ tools/btpclient.c | 121 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+)
src/shared/btp.h +18 -0
@@ -285,6 +285,24 @@ struct btp_gap_identity_resolved_ev {bdaddr_t identity_address; } __packed; +#define BTP_OP_GATT_READ_SUPPORTED_COMMANDS 0x01 + +#define BTP_OP_GATT_READ_UUID 0x12 +struct btp_gatt_read_uuid_cp { +uint8_t address_type; +bdaddr_t address; +uint16_t start_handle; +uint16_t end_handle; +uint8_t uuid_len; +uint8_t uuid[]; +} __packed; + +struct btp_gatt_read_uuid_rp { +uint8_t status; +uint8_t count; +uint8_t data[]; +} __packed; +struct btp ;typedef void (*btp_destroy_func_t )(void *user_data);
tools/btpclient.c +121 -0
163 lines not on this page · raw message
Signature · 1 line
2.43.0
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1053057
---Test result---
Test Summary:
CheckPatch PENDING 0.45 seconds GitLint PENDING 0.46 seconds BuildEll PASS 19.97 seconds BluezMake PASS 639.90 seconds MakeCheck PASS 18.53 seconds MakeDistcheck PASS 242.00 seconds CheckValgrind PASS 293.99 seconds CheckSmatch PASS 349.38 seconds bluezmakeextell PASS 182.90 seconds IncrementalBuild PENDING 0.44 seconds ScanBuild PASS 1015.19 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:
---
Regards,
Linux Bluetooth