mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 05:04:18 +08:00
Display AVM firmware version with 'revision' command
This commit is contained in:
parent
79cc4e4e2d
commit
d68d01e1d2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user