]> git.karo-electronics.de Git - karo-tx-linux.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)
commit662d652dd60edbb45acab772baedaf39a2f22ffc
tree7c94da98fdfad1e09e6506b2e2d02bfe2c585c2e
parentdb3aebf4a13562c60761e5530f2cbf6ef9fdee2b
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