From 3e0db2b27ad09371d26dd8a7d82177bba8aeebde Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 13 Feb 2010 02:22:18 +0100 Subject: Show controller type and bus type for every device --- tools/hciconfig.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tools/hciconfig.c') diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 1b0ae680a..f756f759d 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -1587,10 +1587,12 @@ static void print_dev_hdr(struct hci_dev_info *di) ba2str(&di->bdaddr, addr); - printf("%s:\tType: %s\n", di->name, hci_dtypetostr(di->type) ); - printf("\tBD Address: %s ACL MTU: %d:%d SCO MTU: %d:%d\n", - addr, di->acl_mtu, di->acl_pkts, - di->sco_mtu, di->sco_pkts); + printf("%s:\tType: %s Bus: %s\n", di->name, + hci_typetostr(di->type >> 4), + hci_bustostr(di->type & 0x0f)); + printf("\tBD Address: %s ACL MTU: %d:%d SCO MTU: %d:%d\n", + addr, di->acl_mtu, di->acl_pkts, + di->sco_mtu, di->sco_pkts); } static void print_dev_info(int ctl, struct hci_dev_info *di) -- cgit v1.2.1