Bluetooth: Only one command per L2CAP LE signalling is supported
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Oct 2013 08:26:37 +0000 (01:26 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 3 Oct 2013 13:09:59 +0000 (16:09 +0300)
commit4f3e219d95a3c31b916dcd5e2631c4e440736f79
tree31d95295dbdc1d10a520ea4b8670f45979501f2d
parent92381f5cd72b3fb415efe2406ad9fa462a223151
Bluetooth: Only one command per L2CAP LE signalling is supported

The Bluetooth specification makes it clear that only one command
should be present in the L2CAP LE signalling packet. So tighten
the checks here and restrict it to exactly one command.

This is different from L2CAP BR/EDR signalling where multiple
commands can be part of the same packet.

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