aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/emulator
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-09-11 13:20:02 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-09-11 13:20:02 -0700
commit87d6b1340204cf6694aa08bc23fdb34230e5a1e7 (patch)
tree6973e7b5be6c9b72407d05ac9e90a20d27f24f42 /emulator
parented08a077401ec4aae4457235ff55634dde289a55 (diff)
emulator: Implement LE Remove CIG
This adds support for LE Remove CIG command.
Diffstat (limited to 'emulator')
-rw-r--r--emulator/btdev.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/emulator/btdev.c b/emulator/btdev.c
index 066c5630a7..e9c3811f89 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;