summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg2013-09-13 10:40:01 +0200
committerGustavo Padovan2013-09-19 17:20:07 +0200
commit5d4e7e8db0544ec53025383bac49a3328affdad3 (patch)
tree5593027fba948dadfb1628dd10d5b508457ca138 /include
parentBluetooth: Fix waiting for clearing of BT_SK_SUSPEND flag (diff)
downloadkernel-qcow2-linux-5d4e7e8db0544ec53025383bac49a3328affdad3.tar.gz
kernel-qcow2-linux-5d4e7e8db0544ec53025383bac49a3328affdad3.tar.xz
kernel-qcow2-linux-5d4e7e8db0544ec53025383bac49a3328affdad3.zip
Bluetooth: Add synchronization train parameters reading support
This patch adds support for reading the synchronization train parameters for controllers that support the feature. Since the feature is detectable through the local features page 2, which is retreived only in stage 3 of the HCI init sequence, there is no other option than to add a fourth stage to the init sequence. For now the patch doesn't yet add storing of the parameters, but it is nevertheless convenient to have around to see what kind of parameters various controllers use by default (analyzable e.g. with the btmon user space tool). Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/hci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 52bd2488ff4a..f7197a0ac759 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -835,6 +835,8 @@ struct hci_cp_write_le_host_supported {
__u8 simul;
} __packed;
+#define HCI_OP_READ_SYNC_TRAIN_PARAMS 0x0c77
+
#define HCI_OP_READ_LOCAL_VERSION 0x1001
struct hci_rp_read_local_version {
__u8 status;