Skip to content

Commit 2ad1ef6

Browse files
sjanccfriedt
authored andcommitted
Bluetooth: host: Fix L2CAP reconfigure response with invalid CID
When an L2CAP_CREDIT_BASED_RECONFIGURE_REQ packet is received with invalid parameters, the recipient shall send an L2CAP_CREDIT_BASED_RECONFIGURE_RSP PDU with a non-zero Result field and not change any MTU and MPS values. This fix incorrectly reconfiguring valid channels while responding with 0x003 (Reconfiguration failed - one or more Destination CIDs invalid) result code. Signed-off-by: Szymon Janc <[email protected]> (cherry picked from commit 253070b)
1 parent 089675a commit 2ad1ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/l2cap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ static void le_ecred_reconf_req(struct bt_l2cap *l2cap, uint8_t ident,
12951295
chan = bt_l2cap_le_lookup_tx_cid(conn, scid);
12961296
if (!chan) {
12971297
result = BT_L2CAP_RECONF_INVALID_CID;
1298-
continue;
1298+
goto response;
12991299
}
13001300

13011301
if (BT_L2CAP_LE_CHAN(chan)->tx.mtu > mtu) {

0 commit comments

Comments
 (0)