diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2011-10-12 03:53:57 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-10-13 16:34:16 -0400 |
commit | 928abaa777501ddab94b1b49aae485a2c730d303 (patch) | |
tree | c77b743bb88b86bc18e9f88dae37ce5a7ee3a0b9 /include/net/bluetooth | |
parent | f89cef09cee60a9715150a6e335dce4e64df7400 (diff) |
Bluetooth: AMP: read local amp info HCI command
Implementation of Read Local AMP Info Command
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/hci.h | 15 | ||||
-rw-r--r-- | include/net/bluetooth/hci_core.h | 11 |
2 files changed, 26 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index aaf79af72432..c5fcd13b9edf 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -726,6 +726,21 @@ struct hci_cp_write_page_scan_activity { | |||
726 | #define PAGE_SCAN_TYPE_STANDARD 0x00 | 726 | #define PAGE_SCAN_TYPE_STANDARD 0x00 |
727 | #define PAGE_SCAN_TYPE_INTERLACED 0x01 | 727 | #define PAGE_SCAN_TYPE_INTERLACED 0x01 |
728 | 728 | ||
729 | #define HCI_OP_READ_LOCAL_AMP_INFO 0x1409 | ||
730 | struct hci_rp_read_local_amp_info { | ||
731 | __u8 status; | ||
732 | __u8 amp_status; | ||
733 | __le32 total_bw; | ||
734 | __le32 max_bw; | ||
735 | __le32 min_latency; | ||
736 | __le32 max_pdu; | ||
737 | __u8 amp_type; | ||
738 | __le16 pal_cap; | ||
739 | __le16 max_assoc_size; | ||
740 | __le32 max_flush_to; | ||
741 | __le32 be_flush_to; | ||
742 | } __packed; | ||
743 | |||
729 | #define HCI_OP_LE_SET_EVENT_MASK 0x2001 | 744 | #define HCI_OP_LE_SET_EVENT_MASK 0x2001 |
730 | struct hci_cp_le_set_event_mask { | 745 | struct hci_cp_le_set_event_mask { |
731 | __u8 mask[8]; | 746 | __u8 mask[8]; |
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 5b924423cf20..32cddb0f0912 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -150,6 +150,17 @@ struct hci_dev { | |||
150 | __u16 sniff_min_interval; | 150 | __u16 sniff_min_interval; |
151 | __u16 sniff_max_interval; | 151 | __u16 sniff_max_interval; |
152 | 152 | ||
153 | __u8 amp_status; | ||
154 | __u32 amp_total_bw; | ||
155 | __u32 amp_max_bw; | ||
156 | __u32 amp_min_latency; | ||
157 | __u32 amp_max_pdu; | ||
158 | __u8 amp_type; | ||
159 | __u16 amp_pal_cap; | ||
160 | __u16 amp_assoc_size; | ||
161 | __u32 amp_max_flush_to; | ||
162 | __u32 amp_be_flush_to; | ||
163 | |||
153 | unsigned int auto_accept_delay; | 164 | unsigned int auto_accept_delay; |
154 | 165 | ||
155 | unsigned long quirks; | 166 | unsigned long quirks; |