diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2012-02-17 18:39:35 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-19 05:32:21 -0500 |
commit | f39799f5047c4827b200acbf33cd0ba076afd7ed (patch) | |
tree | 91aaf60a5aeb5e0bbac57ec056f71552a695372a /include/net/bluetooth/mgmt.h | |
parent | ea585ab51d3fe2eb2d738c91f83e7c309e76b4fe (diff) |
Bluetooth: Prepare start_discovery
This patch does some code refactoring in start_discovery function
in order to prepare it for interleaved discovery support.
MGMT_ADDR_* macros were moved to hci_core.h since they are now used
to define discovery type macros.
Discovery type macros were defined according to mgmt-api.txt
specification:
Possible values for the Type parameter are a bit-wise or of the
following bits:
1 BR/EDR
2 LE Public
3 LE Random
By combining these e.g. the following values are possible:
1 BR/EDR
6 LE (public & random)
7 BR/EDR/LE (interleaved discovery)
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth/mgmt.h')
-rw-r--r-- | include/net/bluetooth/mgmt.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h index ee625a6ad791..ad54b5fd634c 100644 --- a/include/net/bluetooth/mgmt.h +++ b/include/net/bluetooth/mgmt.h | |||
@@ -48,11 +48,6 @@ struct mgmt_hdr { | |||
48 | __le16 len; | 48 | __le16 len; |
49 | } __packed; | 49 | } __packed; |
50 | 50 | ||
51 | #define MGMT_ADDR_BREDR 0x00 | ||
52 | #define MGMT_ADDR_LE_PUBLIC 0x01 | ||
53 | #define MGMT_ADDR_LE_RANDOM 0x02 | ||
54 | #define MGMT_ADDR_INVALID 0xff | ||
55 | |||
56 | struct mgmt_addr_info { | 51 | struct mgmt_addr_info { |
57 | bdaddr_t bdaddr; | 52 | bdaddr_t bdaddr; |
58 | __u8 type; | 53 | __u8 type; |