Skip to content

Commit 6c01ce3

Browse files
xiongweichaoespressif-bot
authored andcommitted
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 espressif#13847
1 parent 397b1e5 commit 6c01ce3

File tree

1 file changed

+1
-1
lines changed
  • components/bt/host/bluedroid/btc/profile/std/l2cap

1 file changed

+1
-1
lines changed

components/bt/host/bluedroid/btc/profile/std/l2cap/btc_l2cap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ void btc_l2cap_cb_handler(btc_msg_t *msg)
945945
break; // to do disconnect
946946
}
947947
memset(p_data_buf, 0, count + sizeof(BT_HDR));
948-
p_data_buf->len = BTA_JvL2capRead(p_data->data_ind.handle, slot->id, p_data_buf->data, count);
948+
p_data_buf->len = BTA_JvL2capRead(p_data->l2c_read.handle, slot->id, p_data_buf->data, count);
949949
if (p_data_buf->len > 0) {
950950
fixed_queue_enqueue(slot->rx.queue, p_data_buf, FIXED_QUEUE_MAX_TIMEOUT);
951951
} else {

0 commit comments

Comments
 (0)