aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-07-09 19:33:49 -0300
committerVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-07-12 20:11:43 -0300
commit71716c2a00dc7e60055fe6589b87b77daed23a92 (patch)
treedd7216c268b8bcac3cc5e8c75e5d2e0ab8cae03c /tools
parent239e874de08e4c3b02ad70084de17743f01dfc2d (diff)
downloadbluez-71716c2a00dc7e60055fe6589b87b77daed23a92.tar.gz
Add handle and timeout parameters to hci_le_create_conn
Now hci_le_create_conn is more consistent with hci_create_conn, both have a handle out parameter and a timeout.
Diffstat (limited to 'tools')
-rw-r--r--tools/hcitool.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/hcitool.c b/tools/hcitool.c
index 14b17de3..0fff0cee 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -2485,7 +2485,7 @@ static void cmd_lecc(int dev_id, int argc, char **argv)
int err, opt, dd;
bdaddr_t bdaddr;
uint16_t interval, latency, max_ce_length, max_interval, min_ce_length;
- uint16_t min_interval, supervision_timeout, window;
+ uint16_t min_interval, supervision_timeout, window, handle;
uint8_t initiator_filter, own_bdaddr_type, peer_bdaddr_type;
for_each_opt(opt, lecc_options, NULL) {
@@ -2527,12 +2527,14 @@ static void cmd_lecc(int dev_id, int argc, char **argv)
err = hci_le_create_conn(dd, interval, window, initiator_filter,
peer_bdaddr_type, bdaddr, own_bdaddr_type, min_interval,
max_interval, latency, supervision_timeout,
- min_ce_length, max_ce_length);
+ min_ce_length, max_ce_length, &handle, 25000);
if (err < 0) {
perror("Could not create connection");
exit(1);
}
+ printf("Connection handle %d\n", handle);
+
hci_close_dev(dd);
}