diff options
-rw-r--r-- | tools/hciconfig.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 3cbec922..25e91012 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -414,9 +414,11 @@ void print_dev_info(int ctl, struct hci_dev_info *di) print_link_policy(di); print_link_mode(di); - cmd_name(ctl, di->dev_id, NULL); - cmd_class(ctl, di->dev_id, NULL); - cmd_version(ctl, di->dev_id, NULL); + if (di->flags & (1 << HCI_UP)) { + cmd_name(ctl, di->dev_id, NULL); + cmd_class(ctl, di->dev_id, NULL); + cmd_version(ctl, di->dev_id, NULL); + } } printf("\n"); |