]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: L2CAP: Fix errors during L2CAP_CREDIT_BASED_CONNECTION_REQ (0x17)
authorKonstantin Forostyan <konstantin.forostyan@peiker-cee.de>
Mon, 4 May 2020 16:01:49 +0000 (16:01 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 11 May 2020 10:13:38 +0000 (12:13 +0200)
commit0d5ac91f46f2ff403085f476414659149ba0076f
tree7dbaa9dcc9af44b6ca4209d0b0b6f526a5592211
parentc6b392aeaadeba66d3a817330539da9a621d2a9d
Bluetooth: L2CAP: Fix errors during L2CAP_CREDIT_BASED_CONNECTION_REQ (0x17)

Fix 2 typos in L2CAP_CREDIT_BASED_CONNECTION_REQ (0x17) handling function, that
cause BlueZ answer with L2CAP_CR_LE_INVALID_PARAMS or L2CAP_CR_LE_INVALID_SCID
error on a correct ECRED connection request.

Enchanced Credit Based Mode support was recently introduced with the commit
1ffdaacd6e412884e09a00829ce92338bb688a17 ("Bluetooth: L2CAP: Add initial code
for Enhanced Credit Based Mode").

Signed-off-by: Konstantin Forostyan <konstantin.forostyan@peiker-cee.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c