Bluetooth: ATT: Handle Read Blob response
This adds function handler for Read Blob Response PDU which call the request callback: < ACL Data TX: Handle 3585 flags 0x00 dlen 9 ATT: Read Blob Request (0x0c) len 4 Handle: 0x0010 Offset: 0x0001 > ACL Data RX: Handle 3585 flags 0x02 dlen 9 ATT: Read Blob Response (0x0d) len 4 11 00 39 2a Change-Id: I7e098649d35e46bfe24259bf6a2a3d5b35873977 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
a02df0f64a
commit
569d5e6fe3
1 changed files with 10 additions and 0 deletions
|
@ -1225,6 +1225,14 @@ static uint8_t att_handle_read_rsp(struct bt_conn *conn,
|
|||
return att_handle_rsp(conn, buf->data, buf->len, 0);
|
||||
}
|
||||
|
||||
static uint8_t att_handle_read_blob_rsp(struct bt_conn *conn,
|
||||
struct bt_buf *buf)
|
||||
{
|
||||
BT_DBG("\n");
|
||||
|
||||
return att_handle_rsp(conn, buf->data, buf->len, 0);
|
||||
}
|
||||
|
||||
static const struct {
|
||||
uint8_t op;
|
||||
uint8_t (*func)(struct bt_conn *conn, struct bt_buf *buf);
|
||||
|
@ -1254,6 +1262,8 @@ static const struct {
|
|||
sizeof(struct bt_att_read_rsp) },
|
||||
{ BT_ATT_OP_READ_BLOB_REQ, att_read_blob_req,
|
||||
sizeof(struct bt_att_read_blob_req) },
|
||||
{ BT_ATT_OP_READ_BLOB_RSP, att_handle_read_blob_rsp,
|
||||
sizeof(struct bt_att_read_blob_rsp) },
|
||||
{ BT_ATT_OP_READ_MULT_REQ, att_read_mult_req,
|
||||
BT_ATT_READ_MULT_MIN_LEN_REQ },
|
||||
{ BT_ATT_OP_READ_GROUP_REQ, att_read_group_req,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue