summaryrefslogtreecommitdiff
path: root/emulator/btdev.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-03-10 15:20:49 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-04-14 17:05:21 -0700
commitdc1b309901e5a1af4fdb5dc36c4af87ea9f7fae3 (patch)
tree3a9b779faa2cd05e0cd832b6c28bbc790d3095bc /emulator/btdev.c
parent1967b5311525846d94fca3a2a73f9efc743b0572 (diff)
downloadbluez-dc1b309901e5a1af4fdb5dc36c4af87ea9f7fae3.tar.gz
bthost: Add support for Create CIS
This introduces bthost_set_cig_params and bthost_create_cis.
Diffstat (limited to 'emulator/btdev.c')
-rw-r--r--emulator/btdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emulator/btdev.c b/emulator/btdev.c
index ccfaed36b..ae27ce613 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -5860,7 +5860,7 @@ 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);
+ evt.conn_handle = conn ? cpu_to_le16(conn->handle) : 0x0000;
if (!evt.status) {
struct btdev *remote = conn->link->dev;