Bluetooth: Add proper defines for HCI connection role
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Jul 2014 08:42:26 +0000 (11:42 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 16 Jul 2014 09:04:23 +0000 (11:04 +0200)
commitba165a90b59812ab1d9cd2943fd104cfc25c601e
treecf72d266592846f235daac9f53643e390e00ad94
parent2d3c2260e7ef0b21f7f0db0fbfee0b092e1202f8
Bluetooth: Add proper defines for HCI connection role

All HCI commands and events, including LE ones, use 0x00 for master role
and 0x01 for slave role. It makes therefore sense to add generic defines
for these instead of the current LE_CONN_ROLE_MASTER. Having clean
defines will also make it possible to provide simpler internal APIs.

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