aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-06-28 17:54:06 +0300
committerMarcel Holtmann <marcel@holtmann.org>2014-07-03 17:42:48 +0200
commit33f35721030185a2c5a1bb8afd4c3744709745b5 (patch)
tree886565f8f281ed16a6ad5c4307c746bb9b8adb91 /include/net/bluetooth/hci_core.h
parentBluetooth: Use kzalloc instead of kmalloc for pending mgmt commands (diff)
downloadlinux-dev-33f35721030185a2c5a1bb8afd4c3744709745b5.tar.xz
linux-dev-33f35721030185a2c5a1bb8afd4c3744709745b5.zip
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_core.h')
-rw-r--r--include/net/bluetooth/hci_core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index ca2a99807615..0906990dedd8 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -207,6 +207,7 @@ struct hci_dev {
__u16 conn_info_min_age;
__u16 conn_info_max_age;
__u8 ssp_debug_mode;
+ __u32 clock;
__u16 devid_source;
__u16 devid_vendor;
@@ -388,6 +389,9 @@ struct hci_conn {
__s8 max_tx_power;
unsigned long flags;
+ __u32 clock;
+ __u16 clock_accuracy;
+
unsigned long conn_info_timestamp;
__u8 remote_cap;