Diff between ed08a077401ec4aae4457235ff55634dde289a55 and 87d6b1340204cf6694aa08bc23fdb34230e5a1e7

Changed Files

File Additions Deletions Status
emulator/btdev.c +10 -0 modified

Full Patch

diff --git a/emulator/btdev.c b/emulator/btdev.c
index 066c563..e9c3811 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;