summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2003-11-18 11:38:31 +0000
committerMarcel Holtmann <marcel@holtmann.org>2003-11-18 11:38:31 +0000
commit7fbea8e4421d04d23747ad4dbcc31aa2d10e0c74 (patch)
tree663a5b52958f18ec724df69969924998fef152fc /tools
parentd877c418537d529a9c693f23b59ca8b61e089e43 (diff)
Display all 8 bytes of the features
Diffstat (limited to 'tools')
-rw-r--r--tools/hciconfig.c10
-rw-r--r--tools/hcitool.c3
2 files changed, 9 insertions, 4 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index 932ec4e7..ee7afb75 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -97,13 +97,17 @@ void print_link_mode(struct hci_dev_info *di)
void print_dev_features(struct hci_dev_info *di, int format)
{
if (!format) {
- printf("\tFeatures: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n",
+ printf("\tFeatures: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n",
di->features[0], di->features[1],
- di->features[2], di->features[3] );
+ di->features[2], di->features[3],
+ di->features[4], di->features[5],
+ di->features[6], di->features[7] );
} else {
- printf("\tFeatures: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n%s\n",
+ printf("\tFeatures: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n%s\n",
di->features[0], di->features[1],
di->features[2], di->features[3],
+ di->features[4], di->features[5],
+ di->features[6], di->features[7],
lmp_featurestostr(di->features, "\t\t", 3));
}
}
diff --git a/tools/hcitool.c b/tools/hcitool.c
index 59235270..cd546735 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -462,8 +462,9 @@ static void cmd_info(int dev_id, int argc, char **argv)
}
if (hci_read_remote_features(dd, handle, features, 20000) == 0) {
- printf("\tFeatures: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n%s\n",
+ printf("\tFeatures: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n%s\n",
features[0], features[1], features[2], features[3],
+ features[4], features[5], features[6], features[7],
lmp_featurestostr(features, "\t\t", 3));
}