]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Centralize looking up blocked devices to l2cap_recv_frame
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 2 Jul 2014 06:36:21 +0000 (09:36 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:55 +0000 (17:42 +0200)
commitbc4a8b7b831bae73394354845390ae54461b73c7
treea14cd3dbc55162e069cb312d23ae9535d56e43d5
parent578a4eadfcc4e4372209734a66707f7368f4c979
Bluetooth: Centralize looking up blocked devices to l2cap_recv_frame

The ATT channel isn't the only one that we should ensure doesn't receive
data from blocked devices. SMP is another, and in general we don't want
data packets going to any of the various handlers. Therefore, add a
single check to the l2cap_recv_frame function.

The patch fixes at the same time the use of a correct address type. The
blacklist stores the values with the user space facing triple type
wheras hci_conn->dst_type uses the HCI address type (0x00 or 0x01).

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