Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/btconfig update/correct printing of HCI version num...
details: https://anonhg.NetBSD.org/src/rev/7669ca48ed44
branches: trunk
changeset: 747082:7669ca48ed44
user: plunky <plunky%NetBSD.org@localhost>
date: Tue Sep 01 18:04:33 2009 +0000
description:
update/correct printing of HCI version numbers according to the
recently published Assigned Numbers documents at www.bluetooth.com
diffstat:
usr.sbin/btconfig/btconfig.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (35 lines):
diff -r f455b990cd2e -r 7669ca48ed44 usr.sbin/btconfig/btconfig.c
--- a/usr.sbin/btconfig/btconfig.c Tue Sep 01 18:02:44 2009 +0000
+++ b/usr.sbin/btconfig/btconfig.c Tue Sep 01 18:04:33 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: btconfig.c,v 1.15 2009/08/24 20:43:35 plunky Exp $ */
+/* $NetBSD: btconfig.c,v 1.16 2009/09/01 18:04:33 plunky Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2006 Itronix, Inc. All rights reserved.");
-__RCSID("$NetBSD: btconfig.c,v 1.15 2009/08/24 20:43:35 plunky Exp $");
+__RCSID("$NetBSD: btconfig.c,v 1.16 2009/09/01 18:04:33 plunky Exp $");
#include <sys/ioctl.h>
#include <sys/param.h>
@@ -701,11 +701,12 @@
load_value(HCI_CMD_READ_LOCAL_VER, &version, sizeof(version));
printf("\tHCI version: ");
switch(version) {
- case HCI_SPEC_V10: printf("1.0\n"); break;
- case HCI_SPEC_V11: printf("1.0b\n"); break;
+ case HCI_SPEC_V10: printf("1.0b\n"); break;
+ case HCI_SPEC_V11: printf("1.1\n"); break;
case HCI_SPEC_V12: printf("1.2\n"); break;
- case HCI_SPEC_V20: printf("2.0\n"); break;
- case HCI_SPEC_V21: printf("2.1\n"); break;
+ case HCI_SPEC_V20: printf("2.0 + EDR\n"); break;
+ case HCI_SPEC_V21: printf("2.1 + EDR\n"); break;
+ case HCI_SPEC_V30: printf("3.0 + HS\n"); break;
default: printf("unknown\n"); break;
}
Home |
Main Index |
Thread Index |
Old Index