summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-03-22 19:47:05 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-03-22 19:47:05 +0000
commit945768a289b2114b26c0139f8875d1471a300c6b (patch)
treef9724c1f8b3c707b9128c526e7d6b2f376a2e9dc /tools
parent67230a9bb66546eedfe2a6587c125e3d3c23abf2 (diff)
connect and disconnect fixes.
Diffstat (limited to 'tools')
-rw-r--r--tools/hcitool.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/hcitool.c b/tools/hcitool.c
index 4d6380fb..ed537031 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -219,7 +219,9 @@ static void cmd_con(int dev_id, char **opt, int nopt)
static void cmd_cc(int dev_id, char **opt, int nopt)
{
bdaddr_t bdaddr;
- int dd, ptype, role;
+ int ptype, dd;
+ uint16_t handle;
+ uint8_t role;
if (nopt < 1)
return;
@@ -250,7 +252,7 @@ static void cmd_cc(int dev_id, char **opt, int nopt)
else
role = 0;
- hci_create_connection(dd, &bdaddr, ptype, role, 1000);
+ hci_create_connection(dd, &bdaddr, ptype, role, 0, &handle, 1000);
hci_close_dev(dd);
}
@@ -291,7 +293,7 @@ static void cmd_dc(int dev_id, char **opt, int nopt)
exit(1);
}
- hci_disconnect(dd, cr->conn_info->handle, 0, 100);
+ hci_disconnect(dd, cr->conn_info->handle, 0x13, 100);
close(dd);
free(cr);