From efe0957092da40ed9973f023a6886fa7f83264d7 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Thu, 8 Dec 2011 10:54:37 +0200 Subject: [PATCH] hciconfig: Print features for AMP devices Check for HCI device type, the magic shift is due to dev type is packed to dev_info type. --- tools/hciconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 35b80b195..a7249db0d 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); -- 2.47.3