mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 09:39:10 -04:00
fix(bt/bluedroid): Fixed L2CAP using wrong handle
- Fixed the issue of using the wrong handle to handle the BTA_JV_L2CAP_READ_EVT event. - Closes https://github.com/espressif/esp-idf/issues/13847
This commit is contained in:
parent
f262a271ed
commit
4633d09ff1
@ -946,7 +946,7 @@ void btc_l2cap_cb_handler(btc_msg_t *msg)
|
|||||||
break; // to do disconnect
|
break; // to do disconnect
|
||||||
}
|
}
|
||||||
memset(p_data_buf, 0, count + sizeof(BT_HDR));
|
memset(p_data_buf, 0, count + sizeof(BT_HDR));
|
||||||
p_data_buf->len = BTA_JvL2capRead(p_data->data_ind.handle, slot->id, p_data_buf->data, count);
|
p_data_buf->len = BTA_JvL2capRead(p_data->l2c_read.handle, slot->id, p_data_buf->data, count);
|
||||||
if (p_data_buf->len > 0) {
|
if (p_data_buf->len > 0) {
|
||||||
fixed_queue_enqueue(slot->rx.queue, p_data_buf, FIXED_QUEUE_MAX_TIMEOUT);
|
fixed_queue_enqueue(slot->rx.queue, p_data_buf, FIXED_QUEUE_MAX_TIMEOUT);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user