diff --git a/net/bluetooth/att.c b/net/bluetooth/att.c index 98ccdcb7350..c89b04a9a8b 100644 --- a/net/bluetooth/att.c +++ b/net/bluetooth/att.c @@ -1245,7 +1245,7 @@ static const struct { { BT_ATT_OP_READ_BLOB_REQ, att_read_blob_req, sizeof(struct bt_att_read_blob_req) }, { BT_ATT_OP_READ_MULT_REQ, att_read_mult_req, - sizeof(struct bt_att_read_mult_req) }, + BT_ATT_READ_MULT_MIN_LEN_REQ }, { BT_ATT_OP_READ_GROUP_REQ, att_read_group_req, sizeof(struct bt_att_read_group_req) }, { BT_ATT_OP_WRITE_REQ, att_write_req, diff --git a/net/bluetooth/att.h b/net/bluetooth/att.h index 70ac3bf13fc..ebcc845bcc9 100644 --- a/net/bluetooth/att.h +++ b/net/bluetooth/att.h @@ -167,10 +167,10 @@ struct bt_att_read_blob_rsp { } __packed; /* Read Multiple Request */ +#define BT_ATT_READ_MULT_MIN_LEN_REQ 0x04 + #define BT_ATT_OP_READ_MULT_REQ 0x0e struct bt_att_read_mult_req { - uint16_t handle1; - uint16_t handle2; uint16_t handles[0]; } __packed;