linux/include/net/bluetooth
Johan Hedberg a5c4e309b9 Bluetooth: Add a role parameter to hci_conn_add()
We need to be able to track slave vs master LE connections in
hci_conn_hash, and to be able to do that we need to know the role of the
connection by the time hci_conn_add_has() is called. This means in
practice the hci_conn_add() call that creates the hci_conn_object.

This patch adds a new role parameter to hci_conn_add() function to give
the object its initial role value, and updates the callers to pass the
appropriate role to it. Since the function now takes care of
initializing both conn->role and conn->out values we can remove some
other unnecessary assignments.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2014-07-16 11:58:03 +02:00
..
bluetooth.h Bluetooth: Shrink size of struct l2cap_ctrl fields 2014-07-03 17:42:41 +02:00
hci_core.h Bluetooth: Add a role parameter to hci_conn_add() 2014-07-16 11:58:03 +02:00
hci_mon.h Bluetooth: Fix coding style in all .h files 2012-03-07 00:04:25 -03:00
hci_sock.h Bluetooth: Move HCI socket definitions into its own header file 2014-07-11 13:53:04 +03:00
hci.h Bluetooth: Add proper defines for HCI connection role 2014-07-16 11:04:23 +02:00
l2cap.h Bluetooth: Convert L2CAP ident spinlock into a mutex 2014-07-13 22:32:45 +03:00
mgmt.h Bluetooth: Add support for changing the public device address 2014-07-06 13:42:20 +03:00
rfcomm.h Bluetooth: Convert RFCOMM spinlocks into mutexes 2014-05-05 19:25:06 -07:00
sco.h Bluetooth: Move SCO timeout constants into net/bluetooth/sco.c 2014-07-11 13:58:58 +03:00