]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: L2CAP: Fix response to L2CAP_ECRED_CONN_REQ
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 11 Feb 2026 20:18:03 +0000 (15:18 -0500)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:54 +0000 (07:20 -0500)
commit920b6498ecd0e57685f1ecf3f2ef6c67e9435bc4
treee14f7894b298e160ab7a0537ab8e634df79c2e3d
parent1aff0526fae81b085cb6b80abb3ba635f39ca7cf
Bluetooth: L2CAP: Fix response to L2CAP_ECRED_CONN_REQ

[ Upstream commit 05761c2c2b5bfec85c47f60c903c461e9b56cf87 ]

Similar to 03dba9cea72f ("Bluetooth: L2CAP: Fix not responding with
L2CAP_CR_LE_ENCRYPTION") the result code L2CAP_CR_LE_ENCRYPTION shall
be used when BT_SECURITY_MEDIUM is set since that means security mode 2
which mean it doesn't require authentication which results in
qualification test L2CAP/ECFC/BV-32-C failing.

Link: https://github.com/bluez/bluez/issues/1871
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>
net/bluetooth/l2cap_core.c