]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: L2CAP: Fix using wrong mode
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 8 Dec 2021 23:35:48 +0000 (15:35 -0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 21 Dec 2021 21:46:30 +0000 (13:46 -0800)
commit80d6601ab5603b51ef110a6d2b97e26c6126bdd5
tree5d3d6cb3d77a6be0a065387245c38ae9fa5a263f
parent6799f8b2ecf8eee41573a70b9efad144a0c96fd1
Bluetooth: L2CAP: Fix using wrong mode

If user has a set to use SOCK_STREAM the socket would default to
L2CAP_MODE_ERTM which later needs to be adjusted if the destination
address is LE which doesn't support such mode.

Fixes: b2460a5330f4d ("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: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_sock.c