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 <make.shi@nxp.com>
This commit is contained in:
Make Shi 2025-04-18 11:39:18 +08:00 committed by Benjamin Cabé
commit d879e8482f

View file

@ -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); atomic_clear_bit(BR_CHAN(chan)->flags, L2CAP_FLAG_CONN_PENDING);
break; break;
case BT_L2CAP_BR_PENDING: case BT_L2CAP_BR_PENDING:
br_chan->ident = ident;
k_work_reschedule(&br_chan->rtx_work, L2CAP_BR_CONN_TIMEOUT); k_work_reschedule(&br_chan->rtx_work, L2CAP_BR_CONN_TIMEOUT);
break; break;
default: default: