Skip to content

Commit 1f43e12

Browse files
hermabecarlescufi
authored andcommitted
Bluetooth: Host: Fix setting missing params in create connection v2.
The adv_handle and subevent were always set to 0. Signed-off-by: Herman Berget <[email protected]>
1 parent 3bf7f83 commit 1f43e12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/bluetooth/host/hci_core.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,8 @@ int bt_le_create_conn_synced(const struct bt_conn *conn, const struct bt_le_ext_
654654
cp = net_buf_add(buf, sizeof(*cp));
655655
(void)memset(cp, 0, sizeof(*cp));
656656

657+
cp->subevent = subevent;
658+
cp->adv_handle = adv->handle;
657659
bt_addr_le_copy(&cp->peer_addr, &conn->le.dst);
658660
cp->filter_policy = BT_HCI_LE_CREATE_CONN_FP_NO_FILTER;
659661
cp->own_addr_type = own_addr_type;

0 commit comments

Comments
 (0)