]> 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)
commit815766070cef06046c3b94b3af52c5afc15b5b65
tree7c94da98fdfad1e09e6506b2e2d02bfe2c585c2e
parentff029b2857bd67a413b01965e44a70090810cf52
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