emulator: Don't require ACL connection for Setup ISO Data Path
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 21 May 2020 17:35:10 +0000 (10:35 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
LE Setup ISO Data Path can be used even before the ACL handle exists
when master since Set CIG Parameters will respond with ISO handle it
can then be used to setup the data path in advance of ACL connection.

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

index c5c333f8062d236e8ff9d1a67e5c2aca9c24f16e..3fb860855f7ada7d463c895783c1aa6c264afb72 100755 (executable)
@@ -2427,7 +2427,7 @@ static void le_setup_iso_path(struct btdev *dev, uint16_t handle,
 
        memset(&rsp, 0, sizeof(rsp));
 
-       if (!dev->conn || handle != ISO_HANDLE) {
+       if (handle != ISO_HANDLE) {
                rsp.status = BT_HCI_ERR_UNKNOWN_CONN_ID;
                goto done;
        }