Skip to content

Commit 089675a

Browse files
sjanccfriedt
authored andcommitted
Bluetooth: host: Fix L2CAP reconfigure response with invalid MTU
TSE18813 clarified IUT behavior and rejecting reconfiguration which would result in MTU decrease is enough. There is no need to disconnect L2CAP channel(s). This was affecting L2CAP/ECFC/BI-03-C qualification test case (TCRL 2022-2). Signed-off-by: Szymon Janc <[email protected]> (cherry picked from commit 266394d)
1 parent 03ff0d4 commit 089675a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

subsys/bluetooth/host/l2cap.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,15 +1298,10 @@ static void le_ecred_reconf_req(struct bt_l2cap *l2cap, uint8_t ident,
12981298
continue;
12991299
}
13001300

1301-
/* If the MTU value is decreased for any of the included
1302-
* channels, then the receiver shall disconnect all
1303-
* included channels.
1304-
*/
13051301
if (BT_L2CAP_LE_CHAN(chan)->tx.mtu > mtu) {
13061302
BT_ERR("chan %p decreased MTU %u -> %u", chan,
13071303
BT_L2CAP_LE_CHAN(chan)->tx.mtu, mtu);
13081304
result = BT_L2CAP_RECONF_INVALID_MTU;
1309-
bt_l2cap_chan_disconnect(chan);
13101305
goto response;
13111306
}
13121307

0 commit comments

Comments
 (0)