OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1644c7a
)
emulator: Fix sending valid HCI_LE_Create_Connection parameters
author
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 12 Nov 2015 09:08:34 +0000
(11:08 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 12 Nov 2015 09:08:34 +0000
(11:08 +0200)
emulator/bthost.c
patch
|
blob
|
history
diff --git
a/emulator/bthost.c
b/emulator/bthost.c
index
29bbe5d
..
3638fe4
100644
(file)
--- 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));
}