diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-03-02 14:49:57 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-03-02 16:22:25 -0800 |
commit | 70e6a4a9064a8debf8881880b04e64ea281ea5f4 (patch) | |
tree | 92c24d4d73aa78f286a2d50a8132dfc390b56c97 /monitor/packet.c | |
parent | 9e627576f0ce8933143df7fd51d19971f9ae53dd (diff) | |
download | bluez-70e6a4a9064a8debf8881880b04e64ea281ea5f4.tar.gz |
monitor: Add support for decoding Configure Data Path
< HCI Command: Configure Data Path (0x03|0x0083) plen 3
Direction: Input (Host to Controller) (0x00)
ID: 0
Vendor Specific Config Length: 0
Vendor Specific Config:
> HCI Event: Command Complete (0x0e) plen 4
Configure Data Path (0x03|0x0083) ncmd 1
Status: Success (0x00)
Diffstat (limited to 'monitor/packet.c')
-rw-r--r-- | monitor/packet.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/monitor/packet.c b/monitor/packet.c index acec32b72..fb265028c 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -6061,6 +6061,17 @@ static void read_local_ctrl_delay_cmd(const void *data, uint8_t size) print_field("Length Codec Configuration: %u", cmd->codec_cfg_len); } +static void config_data_path_cmd(const void *data, uint8_t size) +{ + const struct bt_hci_cmd_config_data_path *cmd = data; + + print_path_direction("Direction", cmd->dir); + print_field("ID: %u", cmd->id); + print_field("Vendor Specific Config Length: %u", cmd->vnd_config_len); + print_hex_field("Vendor Specific Config", cmd->vnd_config, + cmd->vnd_config_len); +} + static void print_usec_interval(const char *prefix, const uint8_t interval[3]) { uint32_t u24 = 0; @@ -8844,6 +8855,12 @@ static const struct opcode_data opcode_table[] = { read_local_ctrl_delay_rsp, sizeof(struct bt_hci_rsp_read_local_ctrl_delay), true }, + { BT_HCI_CMD_CONFIG_DATA_PATH, BT_HCI_BIT_CONFIG_DATA_PATH, + "Configure Data Path", + config_data_path_cmd, + sizeof(struct bt_hci_cmd_config_data_path), false, + status_rsp, 1, true + }, /* OGF 5 - Status Parameter */ { 0x1401, 122, "Read Failed Contact Counter", |