From d879e8482f3eaa21a6f8b4bfbee9b39436d81811 Mon Sep 17 00:00:00 2001 From: Make Shi Date: Fri, 18 Apr 2025 11:39:18 +0800 Subject: [PATCH] Bluetooth: Classic: L2CAP: Set the BR chan identifier for PENDING Case When the connection status is "PENDING", need reset the br channel identifier to the correct value before resend the connection response, otherwise these is in an "ident mismatch" error being reported. Signed-off-by: Make Shi --- subsys/bluetooth/host/classic/l2cap_br.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subsys/bluetooth/host/classic/l2cap_br.c b/subsys/bluetooth/host/classic/l2cap_br.c index ad5a896b184..36f49bba3a8 100644 --- a/subsys/bluetooth/host/classic/l2cap_br.c +++ b/subsys/bluetooth/host/classic/l2cap_br.c @@ -4685,6 +4685,7 @@ static void l2cap_br_conn_rsp(struct bt_l2cap_br *l2cap, uint8_t ident, struct n atomic_clear_bit(BR_CHAN(chan)->flags, L2CAP_FLAG_CONN_PENDING); break; case BT_L2CAP_BR_PENDING: + br_chan->ident = ident; k_work_reschedule(&br_chan->rtx_work, L2CAP_BR_CONN_TIMEOUT); break; default: