summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-02-22 15:11:32 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-02-22 15:11:32 +0000
commit354b825e585790a15fc07ca382540739cbb3c155 (patch)
tree91bb057b029e6ca50b4c711f46f316bddb097604
parent05ec11bf58edbacb68ebf4cd4b629df697224d6e (diff)
Use pscan_rep_mode for the name resolve
-rw-r--r--tools/hcitool.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/hcitool.c b/tools/hcitool.c
index 225977b7..27ac78b7 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -302,7 +302,9 @@ 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_with_clock_offset(dd, &(info+i)->bdaddr,
- (info+i)->clock_offset | 0x8000, sizeof(name), name, 100000) < 0)
+ (info+i)->pscan_rep_mode,
+ (info+i)->clock_offset | 0x8000,
+ sizeof(name), name, 100000) < 0)
strcpy(name, "n/a");
ba2str(&(info+i)->bdaddr, addr);
printf("\t%s\t%s\n", addr, name);