diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2004-03-04 17:38:39 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2004-03-04 17:38:39 +0000 |
commit | 136fe53de38de79eda487f3c5c690cab45b1767a (patch) | |
tree | c6f3b14a050a5a115f615dbb4d0a58ec8b85d973 /tools/hciconfig.c | |
parent | 36448c2702b4f496e16cd0e7c0ea64f859eb6040 (diff) |
Display revision information for Broadcom devices
Diffstat (limited to 'tools/hciconfig.c')
-rw-r--r-- | tools/hciconfig.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 651e1438..39804e45 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -886,6 +886,11 @@ static void print_rev_csr(int dd, uint16_t rev) printf("\tSCO mapping: %s\n", mapsco ? "PCM" : "HCI"); } +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) { printf("\tFirmware 03.%d.%d\n", rev >> 8, rev & 0xff); @@ -917,6 +922,9 @@ static void cmd_revision(int ctl, int hdev, char *opt) case 10: print_rev_csr(dd, ver.hci_rev); break; + case 15: + print_rev_broadcom(ver.hci_rev, ver.lmp_subver); + break; case 31: print_rev_avm(ver.hci_rev); break; |