summaryrefslogtreecommitdiff
path: root/emulator/bthost.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2015-11-12 11:08:34 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2015-11-12 11:08:34 +0200
commit1051531f2ddcd2f30566f68720cf88ddff60ceff (patch)
treea257cd7625eae4505df9060bbbd6e950d5bba951 /emulator/bthost.c
parent1644c7a7c962a799f0ac7b21fbe47c568207d6ae (diff)
downloadbluez-1051531f2ddcd2f30566f68720cf88ddff60ceff.tar.gz
emulator: Fix sending valid HCI_LE_Create_Connection parameters
Diffstat (limited to 'emulator/bthost.c')
-rw-r--r--emulator/bthost.c6
1 files changed, 6 insertions, 0 deletions
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));
}