Bluetooth: Convert HCI_CONN_MASTER flag to a conn->role variable
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Jul 2014 08:42:27 +0000 (11:42 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 16 Jul 2014 09:04:23 +0000 (11:04 +0200)
commit40bef302f6323d1ee6fb3dc0e62edb0f446d0339
tree2b77646a8adf90560b66e7f72df64ab4cc76240e
parentba165a90b59812ab1d9cd2943fd104cfc25c601e
Bluetooth: Convert HCI_CONN_MASTER flag to a conn->role variable

Having a dedicated u8 role variable in the hci_conn struct greatly
simplifies tracking of the role, since this is the native way that it's
represented on the HCI level.

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/hci_event.c
net/bluetooth/l2cap_core.c
net/bluetooth/smp.c