From 1051531f2ddcd2f30566f68720cf88ddff60ceff Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 12 Nov 2015 11:08:34 +0200 Subject: [PATCH] emulator: Fix sending valid HCI_LE_Create_Connection parameters --- emulator/bthost.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emulator/bthost.c b/emulator/bthost.c index 29bbe5d1a..3638fe454 100644 --- a/emulator/bthost.c +++ b/emulator/bthost.c @@ -2258,6 +2258,12 @@ void bthost_hci_connect(struct bthost *bthost, const uint8_t *bdaddr, if (addr_type == BDADDR_LE_RANDOM) cc.peer_addr_type = 0x01; + cc.scan_interval = cpu_to_le16(0x0060); + cc.scan_window = cpu_to_le16(0x0030); + cc.min_interval = cpu_to_le16(0x0028); + cc.max_interval = cpu_to_le16(0x0038); + cc.supv_timeout = cpu_to_le16(0x002a); + send_command(bthost, BT_HCI_CMD_LE_CREATE_CONN, &cc, sizeof(cc)); } -- 2.47.3