diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-04-17 08:00:52 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-04-17 23:26:25 -0400 |
commit | d2c5d77fff6ac0f43fc36f4fde020f726f773c1d (patch) | |
tree | 17219324bd7af41a4df3edc194f020c80777eab7 /include/net | |
parent | cad718ed2f6fd204b2c5cac6b611fc3fcde7b183 (diff) |
Bluetooth: Add reading of all local feature pages
With the introduction of CSA4 there is now also a features page number 2
available. This patch increments the maximum supported page number to 2
and adds code for reading all available pages (as long as we have
support for them - indicated by HCI_MAX_PAGES).
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 26822967e29c..80d718a9b31f 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -134,7 +134,7 @@ struct amp_assoc { | |||
134 | __u8 data[HCI_MAX_AMP_ASSOC_SIZE]; | 134 | __u8 data[HCI_MAX_AMP_ASSOC_SIZE]; |
135 | }; | 135 | }; |
136 | 136 | ||
137 | #define HCI_MAX_PAGES 2 | 137 | #define HCI_MAX_PAGES 3 |
138 | 138 | ||
139 | #define NUM_REASSEMBLY 4 | 139 | #define NUM_REASSEMBLY 4 |
140 | struct hci_dev { | 140 | struct hci_dev { |
@@ -153,6 +153,7 @@ struct hci_dev { | |||
153 | __u8 dev_class[3]; | 153 | __u8 dev_class[3]; |
154 | __u8 major_class; | 154 | __u8 major_class; |
155 | __u8 minor_class; | 155 | __u8 minor_class; |
156 | __u8 max_page; | ||
156 | __u8 features[HCI_MAX_PAGES][8]; | 157 | __u8 features[HCI_MAX_PAGES][8]; |
157 | __u8 le_features[8]; | 158 | __u8 le_features[8]; |
158 | __u8 le_white_list_size; | 159 | __u8 le_white_list_size; |