summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-08-26 21:59:50 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-08-26 21:59:50 +0000
commit59badd8391ce0bcd940abed5a750e0192eef9ed8 (patch)
tree19533964c4566c180efc44ed209ce31d97a3c35c
parent66649800c48fc698130d469bf3f38b7361e89e73 (diff)
Fix command bit calculation
-rw-r--r--tools/hciconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index bf98a74d..51fd24af 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -917,7 +917,7 @@ static void cmd_commands(int ctl, int hdev, char *opt)
printf("%s Octet %-2d = 0x%02x (Bit",
i ? "\t\t ": "\tCommands:", i, cmds[i]);
for (n = 0; n < 8; n++)
- if (hci_test_bit(n, &cmds[i]))
+ if (cmds[i] & (1 << n))
printf(" %d", n);
printf(")\n");
}