aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/emulator
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-03-23 16:25:33 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-03-26 14:21:33 -0700
commit9d493f8060ee17cf7cab3e6d9d3387c8c840a266 (patch)
tree461fde8b3c756b8c973271ef1ff6bd63379af090 /emulator
parenta8f26e2711d509391b5bab3666de8b01ee725674 (diff)
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.
Diffstat (limited to 'emulator')
-rw-r--r--emulator/btdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/emulator/btdev.c b/emulator/btdev.c
index d9d5c71457..742c6864b4 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));