mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
fix(ble/bluedroid): Don't log error on 16/128-bit UUID mixed descriptors
(cherry picked from commit fed1d41aa7170d8418dd126dd8e3b47a977b4aca) Co-authored-by: Nebojša Cvetković <nebkat@gmail.com>
This commit is contained in:
parent
ae6d5f8c29
commit
358020ad8f
@ -788,7 +788,7 @@ static tGATT_STATUS gatt_build_primary_service_rsp (BT_HDR *p_msg, tGATT_TCB *p_
|
|||||||
** buffer.
|
** buffer.
|
||||||
**
|
**
|
||||||
** Returns TRUE: if data filled successfully.
|
** Returns TRUE: if data filled successfully.
|
||||||
** FALSE: packet full, or format mismatch.
|
** FALSE: packet full.
|
||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
static tGATT_STATUS gatt_build_find_info_rsp(tGATT_SR_REG *p_rcb, BT_HDR *p_msg, UINT16 *p_len,
|
static tGATT_STATUS gatt_build_find_info_rsp(tGATT_SR_REG *p_rcb, BT_HDR *p_msg, UINT16 *p_len,
|
||||||
@ -831,10 +831,9 @@ static tGATT_STATUS gatt_build_find_info_rsp(tGATT_SR_REG *p_rcb, BT_HDR *p_msg,
|
|||||||
gatt_convert_uuid32_to_uuid128(p, ((tGATT_ATTR32 *) p_attr)->uuid);
|
gatt_convert_uuid32_to_uuid128(p, ((tGATT_ATTR32 *) p_attr)->uuid);
|
||||||
p += LEN_UUID_128;
|
p += LEN_UUID_128;
|
||||||
} else {
|
} else {
|
||||||
GATT_TRACE_ERROR("format mismatch");
|
// UUID format mismatch in sequential attributes
|
||||||
status = GATT_NO_RESOURCES;
|
// A new request will be sent with the starting handle of the next attribute
|
||||||
break;
|
break;
|
||||||
/* format mismatch */
|
|
||||||
}
|
}
|
||||||
p_msg->len += info_pair_len[p_msg->offset - 1];
|
p_msg->len += info_pair_len[p_msg->offset - 1];
|
||||||
len -= info_pair_len[p_msg->offset - 1];
|
len -= info_pair_len[p_msg->offset - 1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user