From 1f333be9cdbfb802d8be7ce5ed17fb9b01706823 Mon Sep 17 00:00:00 2001 From: takawata Date: Wed, 9 Sep 2015 13:24:39 +0000 Subject: fix compare argument for address type. Submitted by: issei10193 (via Twitter) --- usr.sbin/bluetooth/hccontrol/le.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/bluetooth') diff --git a/usr.sbin/bluetooth/hccontrol/le.c b/usr.sbin/bluetooth/hccontrol/le.c index afb151e..c7be20d 100644 --- a/usr.sbin/bluetooth/hccontrol/le.c +++ b/usr.sbin/bluetooth/hccontrol/le.c @@ -88,7 +88,7 @@ le_set_scan_param(int s, int argc, char *argv[]) if (strcmp(argv[3], "public") == 0) adrtype = 0; - else if (strcmp(argv[0], "random") == 0) + else if (strcmp(argv[3], "random") == 0) adrtype = 1; else return USAGE; -- cgit v1.1