aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/bluetooth.h5
-rw-r--r--include/net/bluetooth/hci_core.h16
2 files changed, 11 insertions, 10 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index d0e44a4151e6..27a6a936487d 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -163,6 +163,11 @@ typedef struct {
163 __u8 b[6]; 163 __u8 b[6];
164} __packed bdaddr_t; 164} __packed bdaddr_t;
165 165
166/* BD Address type */
167#define BDADDR_BREDR 0x00
168#define BDADDR_LE_PUBLIC 0x01
169#define BDADDR_LE_RANDOM 0x02
170
166#define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}}) 171#define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
167#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}}) 172#define BDADDR_LOCAL (&(bdaddr_t) {{0, 0, 0, 0xff, 0xff, 0xff}})
168 173
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);