From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> Check for HCI device type, the magic shift is due to dev type is packed to dev_info type. --- tools/hciconfig.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 35b80b1..a7249db 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -1870,7 +1870,7 @@ static void print_dev_info(int ctl, struct hci_dev_info *di) st->byte_tx, st->acl_tx, st->sco_tx, st->cmd_tx, st->err_tx); if (all && !hci_test_bit(HCI_RAW, &di->flags) && - bacmp(&di->bdaddr, BDADDR_ANY)) { + (bacmp(&di->bdaddr, BDADDR_ANY) || (di->type >> 4))) { print_dev_features(di, 0); print_pkt_type(di); print_link_policy(di); -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html