]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 24 Oct 2012 19:58:53 +0000 (17:58 -0200)
commit77220c6582477e696e3f3a53634fb1bd73128e95
tree3eb8d4ba792ad9417ac3469db0519240a004e002
parent9d70924f25dd087272b5b329c3389ed5cd5fab91
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