summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-02-23 21:14:23 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-02-23 21:14:23 +0000
commit1670b1237dee92f83cb46ea0d9840d88dd49c57a (patch)
tree0480028a4d2474585f764fec24733d389166218b
parent7021f61d998ae38c623fb81204b6d6737eec080d (diff)
Fix service classes decoding
-rw-r--r--tools/hciconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index 1e1813f9..e6868f0c 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -666,7 +666,7 @@ static void cmd_class(int ctl, int hdev, char *opt)
printf("\tService Classes: ");
if (cls[2]) {
int first = 1;
- for (s = 0; s < sizeof(*services); s++)
+ for (s = 0; s < (sizeof(services) / sizeof(*services)); s++)
if (cls[2] & (1 << s)) {
if (!first)
printf(", ");