From 87d6b1340204cf6694aa08bc23fdb34230e5a1e7 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 11 Sep 2020 13:20:02 -0700 Subject: [PATCH] emulator: Implement LE Remove CIG This adds support for LE Remove CIG command. --- emulator/btdev.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/emulator/btdev.c b/emulator/btdev.c index 066c5630a..e9c3811f8 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -2582,6 +2582,7 @@ static void default_cmd(struct btdev *btdev, uint16_t opcode, struct bt_hci_rsp_le_set_cig_params params; uint16_t handle; } __attribute__ ((packed)) lscp; + struct bt_hci_rsp_le_remove_cig lrc; struct bt_hci_cmd_le_setup_iso_path *lesip; uint8_t status, page; @@ -3884,6 +3885,15 @@ static void default_cmd(struct btdev *btdev, uint16_t opcode, break; + case BT_HCI_CMD_LE_REMOVE_CIG: + if (btdev->type != BTDEV_TYPE_BREDRLE52) + goto unsupported; + memset(&btdev->le_cig, 0, sizeof(btdev->le_cig)); + lrc.status = BT_HCI_ERR_SUCCESS; + lrc.cig_id = 0x00; + cmd_complete(btdev, opcode, &lrc, sizeof(lrc)); + break; + case BT_HCI_CMD_LE_ACCEPT_CIS: if (btdev->type != BTDEV_TYPE_BREDRLE52) goto unsupported; -- 2.47.3