emulator: Fix sending CIS Requested to Create CIS device
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 14 Jan 2021 20:54:13 +0000 (12:54 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:34 +0000 (19:08 +0530)
CIS Requested shall be send to the remote peer not the originating one.

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

index 17965f9..73c0db3 100755 (executable)
@@ -4408,7 +4408,7 @@ static int cmd_create_cis_complete(struct btdev *dev, const void *data,
                evt.cig_id = 0x00;
                evt.cis_id = 0x00;
 
-               le_meta_event(iso->dev, BT_HCI_EVT_LE_CIS_REQ, &evt,
+               le_meta_event(iso->link->dev, BT_HCI_EVT_LE_CIS_REQ, &evt,
                                        sizeof(evt));
        }