summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-02-11 04:17:52 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-02-11 04:17:52 +0000
commitd67817be8163beb8d69d97934eb998d269221a14 (patch)
tree4cec8e8ef42b11ebc17f1dbd9c43599b4d9a7197
parent508afd448b78e3d4c0b531c4696c5e906f259787 (diff)
Use the clock offset when getting the remote names
-rw-r--r--tools/hcitool.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/hcitool.c b/tools/hcitool.c
index 8b7131a0..57d23e6a 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -301,7 +301,8 @@ static void cmd_scan(int dev_id, int argc, char **argv)
for (i = 0; i < num_rsp; i++) {
memset(name, 0, sizeof(name));
- if (hci_read_remote_name(dd, &(info+i)->bdaddr, sizeof(name), name, 100000) < 0)
+ if (hci_read_remote_name_with_clock_offset(dd, &(info+i)->bdaddr,
+ htobs((info+i)->clock_offset), sizeof(name), name, 100000) < 0)
strcpy(name, "n/a");
ba2str(&(info+i)->bdaddr, addr);
printf("\t%s\t%s\n", addr, name);
@@ -662,7 +663,7 @@ static void cmd_cc(int dev_id, int argc, char **argv)
}
if (hci_create_connection(dd, &bdaddr, htobs(ptype),
- 0, role, &handle, 25000) < 0)
+ htobs(0x0000), role, &handle, 25000) < 0)
perror("Can't create connection");
hci_close_dev(dd);
}