add details relating to v2.1 of bluetooth specification

This commit is contained in:
plunky 2008-02-11 11:23:46 +00:00
parent 7794776b36
commit 0bda0fe19b

View File

@ -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 <sys/cdefs.h>
__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 <sys/ioctl.h>
#include <sys/param.h>
@ -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("<sniff subrating>");
if (*f & HCI_LMP_PAUSE_ENCRYPTION) tag("<pause encryption>");
if (*f & HCI_LMP_AFH_CAPABLE_MASTER)tag("<AFH capable master>");
if (*f & HCI_LMP_AFH_CLASS_MASTER) tag("<AFH class master>");
if (*f & HCI_LMP_EDR_eSCO_2MBPS) tag("<EDR eSCO 2Mbps>");
@ -825,9 +828,16 @@ print_features(const char *str, uint8_t *f)
f++;
/* ------------------- byte 6 --------------------*/
if (*f & HCI_LMP_EXTENDED_INQUIRY) tag("<extended inquiry>");
if (*f & HCI_LMP_SIMPLE_PAIRING) tag("<secure simple pairing>");
if (*f & HCI_LMP_ENCAPSULATED_PDU) tag("<encapsulated PDU>");
if (*f & HCI_LMP_ERRDATA_REPORTING) tag("<errdata reporting>");
if (*f & HCI_LMP_NOFLUSH_PB_FLAG) tag("<no flush PB flag>");
f++;
/* ------------------- byte 7 --------------------*/
if (*f & HCI_LMP_LINK_SUPERVISION_TO)tag("<link supervision timeout changed>");
if (*f & HCI_LMP_INQ_RSP_TX_POWER) tag("<inquiry rsp TX power level>");
if (*f & HCI_LMP_EXTENDED_FEATURES) tag("<extended features>");
tag(NULL);