summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2003-05-19 14:20:23 +0000
committerMarcel Holtmann <marcel@holtmann.org>2003-05-19 14:20:23 +0000
commitd68d01e1d2aecd2326cbc7dc0a8ec77ce30a1b02 (patch)
tree43c422c315f91cc6acc78fb420412665137db7a9
parent79cc4e4e2d74be3f1445203b1fdb844caa1cb009 (diff)
Display AVM firmware version with 'revision' command
-rw-r--r--tools/hciconfig.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index bae207702..87de4b3f4 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -842,6 +842,11 @@ static void print_rev_csr(uint16_t rev)
printf("\tUnknown firmware\n");
}
+static void print_rev_avm(uint16_t rev)
+{
+ printf("\tFirmware 3.%d.%d\n", rev >> 8, rev & 0xff);
+}
+
static void cmd_revision(int ctl, int hdev, char *opt)
{
struct hci_version ver;
@@ -867,6 +872,9 @@ static void cmd_revision(int ctl, int hdev, char *opt)
case 10:
print_rev_csr(ver.hci_rev);
break;
+ case 31:
+ print_rev_avm(ver.hci_rev);
+ break;
default:
printf("\tUnsupported manufacturer\n");
break;