summaryrefslogtreecommitdiff
path: root/monitor/bt.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-02-26 16:55:44 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-03-02 16:22:25 -0800
commitc4aec697076a986d5a6e9e57b4f03572d27c6c2d (patch)
tree8ad2df99fbf4f9fadcd446cdccbff96ee9cb1de3 /monitor/bt.h
parenta0d075072dbc21f005408bbeafc68ba26991e80e (diff)
downloadbluez-c4aec697076a986d5a6e9e57b4f03572d27c6c2d.tar.gz
monitor: Add support for decoding Read Local Controller Delay
< HCI Command: Read Local Supported Controller Delay (0x04|0x000f) plen 8 Codec: mSBC (0x05) Logical Transport Type: 0x02 Codec supported over BR/EDR SCO and eSCO Direction: Input (Host to Controller) (0x00) Length Codec Configuration: 0 > HCI Event: Command Complete (0x0e) plen 10 Read Local Supported Controller Delay (0x04|0x000f) ncmd 1 Status: Success (0x00) Minimum Controller delay: 0 us (0x000000) Maximum Controller delay: 0 us (0x000000)
Diffstat (limited to 'monitor/bt.h')
-rw-r--r--monitor/bt.h25
1 files changed, 19 insertions, 6 deletions
diff --git a/monitor/bt.h b/monitor/bt.h
index 21ee67fed..7d865c9ae 100644
--- a/monitor/bt.h
+++ b/monitor/bt.h
@@ -1776,8 +1776,9 @@ struct bt_hci_rsp_read_local_pairing_options {
#define BT_HCI_LOCAL_CODEC_LE_BIS BIT(3)
struct bt_hci_vnd_codec {
- uint16_t company;
- uint16_t id;
+ uint8_t id;
+ uint16_t cid;
+ uint16_t vid;
uint8_t transport;
} __attribute__ ((packed));
@@ -1795,10 +1796,7 @@ struct bt_hci_rsp_read_local_codecs_v2 {
#define BT_HCI_CMD_READ_LOCAL_CODEC_CAPS 0x100e
#define BT_HCI_BIT_READ_LOCAL_CODEC_CAPS BT_HCI_CMD_BIT(45, 3)
struct bt_hci_cmd_read_local_codec_caps {
- uint8_t codec_id;
- uint16_t codec_cid;
- uint16_t codec_vid;
- uint8_t transport;
+ struct bt_hci_vnd_codec codec;
uint8_t dir;
} __attribute__ ((packed));
@@ -1813,6 +1811,21 @@ struct bt_hci_rsp_read_local_codec_caps {
struct bt_hci_codec_caps caps[0];
} __attribute__ ((packed));
+#define BT_HCI_CMD_READ_LOCAL_CTRL_DELAY 0x100f
+#define BT_HCI_BIT_READ_LOCAL_CTRL_DELAY BT_HCI_CMD_BIT(45, 4)
+struct bt_hci_cmd_read_local_ctrl_delay {
+ struct bt_hci_vnd_codec codec;
+ uint8_t dir;
+ uint8_t codec_cfg_len;
+ uint8_t codec_cfg[0];
+} __attribute__ ((packed));
+
+struct bt_hci_rsp_read_local_ctrl_delay {
+ uint8_t status;
+ uint8_t min_delay[3];
+ uint8_t max_delay[3];
+} __attribute__ ((packed));
+
#define BT_HCI_CMD_READ_FAILED_CONTACT_COUNTER 0x1401
struct bt_hci_cmd_read_failed_contact_counter {
uint16_t handle;