]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Disallow LE scanning and connecting in peripheral role
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 24 Oct 2012 18:12:03 +0000 (21:12 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 1 Nov 2012 22:26:58 +0000 (20:26 -0200)
commit5e5c6681e8595a03e86b5baccf4f33a51d38f6f6
tree3eb8d4ba792ad9417ac3469db0519240a004e002
parent85ed24d64c37cc4bfc22718bfd34825cae55696e
Bluetooth: Disallow LE scanning and connecting in peripheral role

When an adapter is in the LE peripheral role scanning for other devices
or initiating connections to them is not allowed. This patch makes sure
that such attempts will result in appropriate error returns.

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