From 1670b1237dee92f83cb46ea0d9840d88dd49c57a Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 23 Feb 2006 21:14:23 +0000 Subject: Fix service classes decoding --- tools/hciconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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(", "); -- cgit