From b6e23baa9dd99624deb2764e9b986d10630a0edd 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. Signed-off-by: Anuj Jain Signed-off-by: Ayush Garg --- emulator/btdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emulator/btdev.c b/emulator/btdev.c index 7faf2db..d9d5c71 100755 --- 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.7.4