]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: L2CAP: Fix result of L2CAP_ECRED_CONN_RSP when MTU is too short
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 5 Feb 2026 20:11:34 +0000 (15:11 -0500)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:54 +0000 (07:20 -0500)
commitf3fdf2e7276a3edc5df55454275da20eac186970
tree8b4c0d3fb8f66a0813dfc3300e5fb20063a8d148
parent5eab4811c6ca063e721296309a652f14893e3a49
Bluetooth: L2CAP: Fix result of L2CAP_ECRED_CONN_RSP when MTU is too short

[ Upstream commit c28d2bff70444a85b3b86aaf241ece9408c7858c ]

Test L2CAP/ECFC/BV-26-C expect the response to L2CAP_ECRED_CONN_REQ with
and MTU value < L2CAP_ECRED_MIN_MTU (64) to be L2CAP_CR_LE_INVALID_PARAMS
rather than L2CAP_CR_LE_UNACCEPT_PARAMS.

Also fix not including the correct number of CIDs in the response since
the spec requires all CIDs being rejected to be included in the
response.

Link: https://github.com/bluez/bluez/issues/1868
Fixes: 15f02b910562 ("Bluetooth: L2CAP: Add initial code for Enhanced Credit Based Mode")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c