]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb93746fd9728333600b3995ab928f99d8ef5b0d3
tree31d95295dbdc1d10a520ea4b8670f45979501f2d
parentc594c5b4e5389c1ddf710f02c40b716ed2ac2b66
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