aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorAndre Guedes <andre.guedes@openbossa.org>2012-04-24 20:02:49 -0400
committerGustavo Padovan <gustavo@padovan.org>2012-05-09 00:40:42 -0400
commit591f47f31ba4e89fc0cce2ad90da80945ce8bf94 (patch)
treef76c50645f1b90d677699eefe53f79188bf0e9d0 /include/net/bluetooth/hci_core.h
parent2bbf2968e5cd72d2dd9e229d85c1617b8aa48f4e (diff)
Bluetooth: Move address type macros to bluetooth.h
This patch moves address type macros to bluetooth.h since they will be used by management interface and Bluetooth socket interface. It also replaces the macro prefix MGMT_ADDR_ by BDADDR_. Signed-off-by: Andre Guedes <andre.guedes@openbossa.org> Acked-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
-rw-r--r--include/net/bluetooth/hci_core.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index ef6e6541aa2a..6777432ca61e 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -963,16 +963,12 @@ void hci_send_to_monitor(struct hci_dev *hdev, struct sk_buff *skb);
963void hci_sock_dev_event(struct hci_dev *hdev, int event); 963void hci_sock_dev_event(struct hci_dev *hdev, int event);
964 964
965/* Management interface */ 965/* Management interface */
966#define MGMT_ADDR_BREDR 0x00 966#define DISCOV_TYPE_BREDR (BIT(BDADDR_BREDR))
967#define MGMT_ADDR_LE_PUBLIC 0x01 967#define DISCOV_TYPE_LE (BIT(BDADDR_LE_PUBLIC) | \
968#define MGMT_ADDR_LE_RANDOM 0x02 968 BIT(BDADDR_LE_RANDOM))
969 969#define DISCOV_TYPE_INTERLEAVED (BIT(BDADDR_BREDR) | \
970#define DISCOV_TYPE_BREDR (BIT(MGMT_ADDR_BREDR)) 970 BIT(BDADDR_LE_PUBLIC) | \
971#define DISCOV_TYPE_LE (BIT(MGMT_ADDR_LE_PUBLIC) | \ 971 BIT(BDADDR_LE_RANDOM))
972 BIT(MGMT_ADDR_LE_RANDOM))
973#define DISCOV_TYPE_INTERLEAVED (BIT(MGMT_ADDR_BREDR) | \
974 BIT(MGMT_ADDR_LE_PUBLIC) | \
975 BIT(MGMT_ADDR_LE_RANDOM))
976 972
977int mgmt_control(struct sock *sk, struct msghdr *msg, size_t len); 973int mgmt_control(struct sock *sk, struct msghdr *msg, size_t len);
978int mgmt_index_added(struct hci_dev *hdev); 974int mgmt_index_added(struct hci_dev *hdev);