diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-10-14 16:56:16 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-10-14 18:31:12 -0400 |
commit | b4cb9fb25e9eae749f456e9e94446650389e736b (patch) | |
tree | 41fd0824bced1503b54963d52da8e29acfb4e16c /include | |
parent | 899e107577a8de67b97a877ed90bbfbfefb1916e (diff) |
Bluetooth: Read number of supported IAC on controller setup
When initializing a controller make sure to read out the number of
supported IAC and store its result. This value is needed to determine
if limited discoverable for BR/EDR can be configured or not.
Signed-off-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.h | 6 | ||||
-rw-r--r-- | include/net/bluetooth/hci_core.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index c8a91cb20173..8567f44aa618 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -815,6 +815,12 @@ struct hci_cp_host_buffer_size { | |||
815 | __le16 sco_max_pkt; | 815 | __le16 sco_max_pkt; |
816 | } __packed; | 816 | } __packed; |
817 | 817 | ||
818 | #define HCI_OP_READ_NUM_SUPPORTED_IAC 0x0c38 | ||
819 | struct hci_rp_read_num_supported_iac { | ||
820 | __u8 status; | ||
821 | __u8 num_iac; | ||
822 | } __packed; | ||
823 | |||
818 | #define HCI_OP_WRITE_INQUIRY_MODE 0x0c45 | 824 | #define HCI_OP_WRITE_INQUIRY_MODE 0x0c45 |
819 | 825 | ||
820 | #define HCI_MAX_EIR_LENGTH 240 | 826 | #define HCI_MAX_EIR_LENGTH 240 |
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 0326b160b89a..4e208420d84c 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -159,6 +159,7 @@ struct hci_dev { | |||
159 | __u16 manufacturer; | 159 | __u16 manufacturer; |
160 | __u16 lmp_subver; | 160 | __u16 lmp_subver; |
161 | __u16 voice_setting; | 161 | __u16 voice_setting; |
162 | __u8 num_iac; | ||
162 | __u8 io_capability; | 163 | __u8 io_capability; |
163 | __s8 inq_tx_power; | 164 | __s8 inq_tx_power; |
164 | __u16 page_scan_interval; | 165 | __u16 page_scan_interval; |