Skip to content

Commit d879e84

Browse files
makeshikartben
authored andcommitted
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 <[email protected]>
1 parent 6695c8f commit d879e84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/host/classic/l2cap_br.c

+1
Original file line numberDiff line numberDiff line change
@@ -4685,6 +4685,7 @@ static void l2cap_br_conn_rsp(struct bt_l2cap_br *l2cap, uint8_t ident, struct n
46854685
atomic_clear_bit(BR_CHAN(chan)->flags, L2CAP_FLAG_CONN_PENDING);
46864686
break;
46874687
case BT_L2CAP_BR_PENDING:
4688+
br_chan->ident = ident;
46884689
k_work_reschedule(&br_chan->rtx_work, L2CAP_BR_CONN_TIMEOUT);
46894690
break;
46904691
default:

0 commit comments

Comments
 (0)