Bluetooth: Fix specifying role for LE connections
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 11 Nov 2015 12:44:57 +0000 (14:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Nov 2015 16:50:32 +0000 (17:50 +0100)
commit0ad06aa6a7682319bb1adcc187a1fa8db6b2da2c
tree01582ee7875e7ab6e4fe337260c986e004330785
parent3dfe5905a7505bc0cbf5f63405631d8e188d9235
Bluetooth: Fix specifying role for LE connections

The hci_connect_le_scan() is (as the name implies) a master/central
role API, so it makes no sense in passing a role parameter to it. At
the same time this patch also fixes the direct advertising support for
LE L2CAP sockets where we now call the more appropriate hci_le_connect()
API if slave/peripheral role is desired.

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