aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-01-22 07:02:01 -0500
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2013-01-22 23:09:16 -0500
commit9b008c0457e583e10e62d1215bed6ab26ee54906 (patch)
treef608bfbee267282ce104601523e2a655ce2945db /include
parentcf1d081f6597a45e5ff63f55c893494a8ae1cdaf (diff)
Bluetooth: Add support for reading LE supported states
The LE supported states indicate the states and state combinations that the link layer supports. This is important information for knowing what operations are possible when dealing with multiple connected devices. This patch adds reading of the supported states to the HCI init sequence. 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.h6
-rw-r--r--include/net/bluetooth/hci_core.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index f1766a6f4954..7f12c25f1fca 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -1045,6 +1045,12 @@ struct hci_rp_le_ltk_neg_reply {
1045 __le16 handle; 1045 __le16 handle;
1046} __packed; 1046} __packed;
1047 1047
1048#define HCI_OP_LE_READ_SUPPORTED_STATES 0x201c
1049struct hci_rp_le_read_supported_states {
1050 __u8 status;
1051 __u8 le_states[8];
1052} __packed;
1053
1048/* ---- HCI Events ---- */ 1054/* ---- HCI Events ---- */
1049#define HCI_EV_INQUIRY_COMPLETE 0x01 1055#define HCI_EV_INQUIRY_COMPLETE 0x01
1050 1056
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index d6ed4ac18d83..bcf8ffe2a843 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -154,6 +154,7 @@ struct hci_dev {
154 __u8 host_features[8]; 154 __u8 host_features[8];
155 __u8 le_features[8]; 155 __u8 le_features[8];
156 __u8 le_white_list_size; 156 __u8 le_white_list_size;
157 __u8 le_states[8];
157 __u8 commands[64]; 158 __u8 commands[64];
158 __u8 hci_ver; 159 __u8 hci_ver;
159 __u16 hci_rev; 160 __u16 hci_rev;