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)
commitf15504788d7b1613ef2ef0a673cfe250c16a6b0d
tree3eb8d4ba792ad9417ac3469db0519240a004e002
parent33f8f5269ea7c220e18a15959dad2b42e1b61051
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