From a8f26e2711d509391b5bab3666de8b01ee725674 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 23 Mar 2021 16:23:39 -0700 Subject: [PATCH] btdev: Always set connection handle on CIS established This is required in order for the host to be able to distinguished errors if there are multiple CIS connections outstanding. --- emulator/btdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index 7faf2dbcf..d9d5c7145 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -4381,11 +4381,11 @@ static void le_cis_estabilished(struct btdev *dev, struct btdev_conn *conn, memset(&evt, 0, sizeof(evt)); evt.status = status; + evt.conn_handle = cpu_to_le16(conn->handle); if (!evt.status) { struct btdev *remote = conn->link->dev; - evt.conn_handle = cpu_to_le16(conn->handle); /* TODO: Figure out if these values makes sense */ memcpy(evt.cig_sync_delay, remote->le_cig.params.m_interval, sizeof(remote->le_cig.params.m_interval)); -- 2.47.3