diff options
author | Andre Guedes <andre.guedes@openbossa.org> | 2013-04-30 14:29:31 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-06-22 19:23:50 -0400 |
commit | 0d8cc935e01c0fd1312a10881f4c0f1c4b4d05ab (patch) | |
tree | e31ae2647fc8f61d2709beb2bd0f508538b9be35 /include | |
parent | 41dc2bd6d13bfccc34d05586be2eb65876a5990a (diff) |
Bluetooth: Move discovery macros to hci_core.h
Some of discovery macros will be used in hci_core so we need to
define them in common place such as hci_core.h. Thus, this patch
moves discovery macros to hci_core.h and also adds the DISCOV_
prefix to them.
Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index ff4e8a5c9ceb..61939a0e6cec 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -1115,6 +1115,16 @@ void hci_sock_dev_event(struct hci_dev *hdev, int event); | |||
1115 | BIT(BDADDR_LE_PUBLIC) | \ | 1115 | BIT(BDADDR_LE_PUBLIC) | \ |
1116 | BIT(BDADDR_LE_RANDOM)) | 1116 | BIT(BDADDR_LE_RANDOM)) |
1117 | 1117 | ||
1118 | /* These LE scan and inquiry parameters were chosen according to LE General | ||
1119 | * Discovery Procedure specification. | ||
1120 | */ | ||
1121 | #define DISCOV_LE_SCAN_WIN 0x12 | ||
1122 | #define DISCOV_LE_SCAN_INT 0x12 | ||
1123 | #define DISCOV_LE_TIMEOUT msecs_to_jiffies(10240) | ||
1124 | #define DISCOV_INTERLEAVED_TIMEOUT msecs_to_jiffies(5120) | ||
1125 | #define DISCOV_INTERLEAVED_INQUIRY_LEN 0x04 | ||
1126 | #define DISCOV_BREDR_INQUIRY_LEN 0x08 | ||
1127 | |||
1118 | int mgmt_control(struct sock *sk, struct msghdr *msg, size_t len); | 1128 | int mgmt_control(struct sock *sk, struct msghdr *msg, size_t len); |
1119 | int mgmt_index_added(struct hci_dev *hdev); | 1129 | int mgmt_index_added(struct hci_dev *hdev); |
1120 | int mgmt_index_removed(struct hci_dev *hdev); | 1130 | int mgmt_index_removed(struct hci_dev *hdev); |