From 0bda0fe19ba8fc714277d6883bd603abff67a011 Mon Sep 17 00:00:00 2001 From: plunky Date: Mon, 11 Feb 2008 11:23:46 +0000 Subject: [PATCH] add details relating to v2.1 of bluetooth specification --- usr.sbin/btconfig/btconfig.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/usr.sbin/btconfig/btconfig.c b/usr.sbin/btconfig/btconfig.c index 024f2bca69b4..bc25c38c0eaf 100644 --- a/usr.sbin/btconfig/btconfig.c +++ b/usr.sbin/btconfig/btconfig.c @@ -1,4 +1,4 @@ -/* $NetBSD: btconfig.c,v 1.10 2007/12/30 18:26:43 plunky Exp $ */ +/* $NetBSD: btconfig.c,v 1.11 2008/02/11 11:23:46 plunky Exp $ */ /*- * Copyright (c) 2006 Itronix Inc. @@ -34,7 +34,7 @@ #include __COPYRIGHT("@(#) Copyright (c) 2006 Itronix, Inc.\n" "All rights reserved.\n"); -__RCSID("$NetBSD: btconfig.c,v 1.10 2007/12/30 18:26:43 plunky Exp $"); +__RCSID("$NetBSD: btconfig.c,v 1.11 2008/02/11 11:23:46 plunky Exp $"); #include #include @@ -649,6 +649,7 @@ print_info(int level) case HCI_SPEC_V11: printf("1.0b\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; default: printf("unknown\n"); break; } @@ -817,6 +818,8 @@ print_features(const char *str, uint8_t *f) /* ------------------- byte 5 --------------------*/ if (*f & HCI_LMP_5SLOT_EDR_ACL) tag("<5 slot EDR ACL>"); + if (*f & HCI_LMP_SNIFF_SUBRATING) tag(""); + if (*f & HCI_LMP_PAUSE_ENCRYPTION) tag(""); if (*f & HCI_LMP_AFH_CAPABLE_MASTER)tag(""); if (*f & HCI_LMP_AFH_CLASS_MASTER) tag(""); if (*f & HCI_LMP_EDR_eSCO_2MBPS) tag(""); @@ -825,9 +828,16 @@ print_features(const char *str, uint8_t *f) f++; /* ------------------- byte 6 --------------------*/ + if (*f & HCI_LMP_EXTENDED_INQUIRY) tag(""); + if (*f & HCI_LMP_SIMPLE_PAIRING) tag(""); + if (*f & HCI_LMP_ENCAPSULATED_PDU) tag(""); + if (*f & HCI_LMP_ERRDATA_REPORTING) tag(""); + if (*f & HCI_LMP_NOFLUSH_PB_FLAG) tag(""); f++; /* ------------------- byte 7 --------------------*/ + if (*f & HCI_LMP_LINK_SUPERVISION_TO)tag(""); + if (*f & HCI_LMP_INQ_RSP_TX_POWER) tag(""); if (*f & HCI_LMP_EXTENDED_FEATURES) tag(""); tag(NULL);