]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Disable upper layer connections when user channel is active
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 4 Sep 2013 01:08:37 +0000 (18:08 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 16 Sep 2013 17:35:56 +0000 (14:35 -0300)
commit58a6f4f92d055e4822546d7d2ed9d094631ad804
treeaa295bac2678a330773a0b04755ca9e3f4452bcd
parentdd05e433099b7b0366e3ec478c1bf1b5b7b89862
Bluetooth: Disable upper layer connections when user channel is active

When the device has the user channel flag set, it means it is driven by
an user application. In that case do not allow any connections from
L2CAP or SCO sockets.

This is the same situation as when the device has the raw flag set and
it will then return EHOSTUNREACH.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_conn.c