From 9d493f8060ee17cf7cab3e6d9d3387c8c840a266 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 23 Mar 2021 16:25:33 -0700 Subject: [PATCH] btdev: Set CIG ID and CIS ID when generating CIS requested This is required in order for the host to properly accept/reject the connection. --- emulator/btdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index d9d5c7145..742c6864b 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -4447,8 +4447,8 @@ static int cmd_create_cis_complete(struct btdev *dev, const void *data, evt.acl_handle = cpu_to_le16(acl->handle); evt.cis_handle = cpu_to_le16(iso->handle); - evt.cig_id = 0x00; - evt.cis_id = 0x00; + evt.cig_id = iso->dev->le_cig.params.cig_id; + evt.cis_id = iso->dev->le_cig.cis.cis_id; le_meta_event(iso->link->dev, BT_HCI_EVT_LE_CIS_REQ, &evt, sizeof(evt)); -- 2.47.3