summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-03-18 19:38:39 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-03-18 19:38:39 +0000
commit50fc3563a46bb0b217b0b3ab941b8b7c012073e1 (patch)
tree17b116a3dffba6342e0a840a4735eeddbdbc0845
parentd5355b836015bbe6d4bb4b4229c2cc7c8d330d9d (diff)
-a option fixes. Don't try to display name,etc of the down devices.
-rw-r--r--tools/hciconfig.c8
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");