diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2004-07-27 16:43:40 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2004-07-27 16:43:40 +0000 |
commit | 48c6c4bd7bef34ccac611f7f01c7d3725b40b1c1 (patch) | |
tree | ae23d716ff854eca06d8f41c16f9cc8f2c214f69 /tools | |
parent | 35b2772c879130f24c554f4740c396afbbf8c921 (diff) |
Check for AVM BlueFRITZ! USB v2.0
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hciconfig.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index d7b7513a..78c56ce7 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -1003,9 +1003,12 @@ static void print_rev_broadcom(uint16_t hci_rev, uint16_t lmp_subver) printf("\tFirmware %d.%d.%03d\n", hci_rev, lmp_subver >> 8, lmp_subver & 0xff); } -static void print_rev_avm(uint16_t rev) +static void print_rev_avm(uint16_t hci_rev, uint16_t lmp_subver) { - printf("\tFirmware 03.%d.%d\n", rev >> 8, rev & 0xff); + if (lmp_subver == 0x01) + printf("\tFirmware 03.%d.%d\n", hci_rev >> 8, hci_rev & 0xff); + else + printf("\tUnknown type\n"); } static void cmd_revision(int ctl, int hdev, char *opt) @@ -1038,7 +1041,7 @@ static void cmd_revision(int ctl, int hdev, char *opt) print_rev_broadcom(ver.hci_rev, ver.lmp_subver); break; case 31: - print_rev_avm(ver.hci_rev); + print_rev_avm(ver.hci_rev, ver.lmp_subver); break; default: printf("\tUnsupported manufacturer\n"); |