Skip to content

Implement Compound GATT Procedures and Long Reads

Brian Gix linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Fix g_attrib_send() to include a new ID parameterattrib/client.c attrib/gatt.c attrib/gattrib.c +3 more+28 -191 reply
2/2Fix gatt_read_char() to support long Attrib Valuesattrib/gatt.c+132 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Implement Compound GATT Procedures and Long Reads

These two patches implement Compound GATT procedures, so that they are executed atomically, and in the order that they are invoked, regardless of whether they can be performed in a single or multiple ATT Req/Resp transaction.

Patch 1 adds an ID parameter to g_attrib_send which shall be Zero for the first ATT transaction, and shall be the previously returned ID for all subsequent ATT transactions for that GATT procedure. The underlying code will enqueue the requested pkt at the Tail of the queue for Zero ID'd pkts, and at the Head of the queue for non-zero (continuation) pkts. The queue is then only services (next item sent) after the callbacks have been made, to allow any continuation pkts to be created.

Patch 2 then uses this new feature of g_attrib_send to implement support for Long Attribute Reads (using READ_BLOB).

Signature · 4 lines
Brian Gix
[email protected]
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum