btdev: Set CIG ID and CIS ID when generating CIS requested
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 23 Mar 2021 23:25:33 +0000 (16:25 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
This is required in order for the host to properly accept/reject the
connection.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
emulator/btdev.c

index d9d5c71..742c686 100755 (executable)
@@ -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));