Bluetooth: ATT: Handle Prepare Write response
This adds the callback necessary to parse Prepare Write response PDU: < ACL Data TX: Handle 3585 flags 0x00 dlen 10 ATT: Prepare Write Request (0x16) len 5 Handle: 0x0011 Offset: 0x0001 Data: 01 > ACL Data RX: Handle 3585 flags 0x02 dlen 10 ATT: Prepare Write Response (0x17) len 5 Handle: 0x0011 Offset: 0x0001 Data: 01 Change-Id: Iaa16ec1477f25a2ebdfbefa5c0056aa3177c930c Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
e2a0c4f2f9
commit
fb0f86fd2b
1 changed files with 10 additions and 0 deletions
|
@ -1250,6 +1250,14 @@ static uint8_t att_handle_write_rsp(struct bt_conn *conn,
|
|||
return att_handle_rsp(conn, buf->data, buf->len, 0);
|
||||
}
|
||||
|
||||
static uint8_t att_handle_prepare_write_rsp(struct bt_conn *conn,
|
||||
struct bt_buf *buf)
|
||||
{
|
||||
BT_DBG("\n");
|
||||
|
||||
return att_handle_rsp(conn, buf->data, buf->len, 0);
|
||||
}
|
||||
|
||||
static uint8_t att_notify(struct bt_conn *conn, struct bt_buf *buf)
|
||||
{
|
||||
uint16_t handle;
|
||||
|
@ -1305,6 +1313,8 @@ static const struct {
|
|||
{ BT_ATT_OP_WRITE_RSP, att_handle_write_rsp, 0 },
|
||||
{ BT_ATT_OP_PREPARE_WRITE_REQ, att_prepare_write_req,
|
||||
sizeof(struct bt_att_prepare_write_req) },
|
||||
{ BT_ATT_OP_PREPARE_WRITE_RSP, att_handle_prepare_write_rsp,
|
||||
sizeof(struct bt_att_prepare_write_rsp) },
|
||||
{ BT_ATT_OP_EXEC_WRITE_REQ, att_exec_write_req,
|
||||
sizeof(struct bt_att_exec_write_req) },
|
||||
{ BT_ATT_OP_NOTIFY, att_notify,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue