aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-06-28 10:54:06 -0400
committerMarcel Holtmann <marcel@holtmann.org>2014-07-03 11:42:48 -0400
commit33f35721030185a2c5a1bb8afd4c3744709745b5 (patch)
tree886565f8f281ed16a6ad5c4307c746bb9b8adb91 /include/net/bluetooth/hci.h
parentfca20018e7b86a8716511c7681115baa47aca8e4 (diff)
Bluetooth: Add tracking of local and piconet clock values
This patch adds support for storing the local and piconet clock values from the HCI_Read_Clock command response to the hci_dev and hci_conn structs. This will be later used in another patch to implement support for the Get Clock Info mgmt command. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci.h')
-rw-r--r--include/net/bluetooth/hci.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 6933766e7215..58c5930dea60 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -1087,6 +1087,18 @@ struct hci_rp_read_rssi {
1087 __s8 rssi; 1087 __s8 rssi;
1088} __packed; 1088} __packed;
1089 1089
1090#define HCI_OP_READ_CLOCK 0x1407
1091struct hci_cp_read_clock {
1092 __le16 handle;
1093 __u8 which;
1094} __packed;
1095struct hci_rp_read_clock {
1096 __u8 status;
1097 __le16 handle;
1098 __le32 clock;
1099 __le16 accuracy;
1100} __packed;
1101
1090#define HCI_OP_READ_LOCAL_AMP_INFO 0x1409 1102#define HCI_OP_READ_LOCAL_AMP_INFO 0x1409
1091struct hci_rp_read_local_amp_info { 1103struct hci_rp_read_local_amp_info {
1092 __u8 status; 1104 __u8 status;