mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -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
7278d06c4f
commit
0b0d316d4c
@ -945,7 +945,7 @@ void btc_l2cap_cb_handler(btc_msg_t *msg)
|
||||
break; // to do disconnect
|
||||
}
|
||||
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) {
|
||||
fixed_queue_enqueue(slot->rx.queue, p_data_buf, FIXED_QUEUE_MAX_TIMEOUT);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user