]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix L2CAP "Command Reject: Invalid CID" response
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Oct 2013 08:20:47 +0000 (11:20 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 16 Oct 2013 08:22:55 +0000 (01:22 -0700)
commitbed6d96c4b108706d511c27dd206ea2fa85cc950
tree7c94da98fdfad1e09e6506b2e2d02bfe2c585c2e
parent7c5cc8d76ed74f9fbb76337d50166173df0f81ce
Bluetooth: Fix L2CAP "Command Reject: Invalid CID" response

When the reason code in the L2CAP command reject is "invalid CID" there
should be four additional bytes of data in the PDU, namely the source
and destination CIDs (which should be zero if one or both are not
applicable). This patch fixes all occurrences of such errors to return
the right kind of PDU.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c