summaryrefslogtreecommitdiff
path: root/monitor/packet.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-09-11 13:07:57 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-09-11 13:07:57 -0700
commited08a077401ec4aae4457235ff55634dde289a55 (patch)
tree78c1a102dff114b777dc9f92b83aad5a66b996cc /monitor/packet.c
parentab39b46b148e4f2a27cc2aa23efa65aea907e0d0 (diff)
downloadbluez-ed08a077401ec4aae4457235ff55634dde289a55.tar.gz
monitor: Fix decoding of LE Remove CIG
HCI_LE_Remove_CIG does actually returns the CIG_ID in addition to the status.
Diffstat (limited to 'monitor/packet.c')
-rw-r--r--monitor/packet.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/monitor/packet.c b/monitor/packet.c
index 451630e04..bef134095 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -7961,6 +7961,18 @@ static void le_remove_cig_cmd(const void *data, uint8_t size)
print_field("CIG ID: 0x%02x", cmd->cig_id);
}
+static void le_remove_cig_rsp(const void *data, uint8_t size)
+{
+ const struct bt_hci_rsp_le_remove_cig *rsp = data;
+
+ print_status(rsp->status);
+
+ if (size == 1)
+ return;
+
+ print_field("CIG ID: 0x%2.2x", rsp->cig_id);
+}
+
static void le_accept_cis_req_cmd(const void *data, uint8_t size)
{
const struct bt_hci_cmd_le_accept_cis *cmd = data;
@@ -9024,7 +9036,9 @@ static const struct opcode_data opcode_table[] = {
"LE Remove Connected Isochronous Group",
le_remove_cig_cmd,
sizeof(struct bt_hci_cmd_le_remove_cig), false,
- status_rsp, 1, true },
+ le_remove_cig_rsp,
+ sizeof(struct bt_hci_rsp_le_remove_cig),
+ false },
{ BT_HCI_CMD_LE_ACCEPT_CIS, BT_HCI_BIT_LE_ACCEPT_CIS,
"LE Accept Connected Isochronous Stream Request",
le_accept_cis_req_cmd,