summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hci.c b/src/hci.c
index c0be8df2..1424ddcd 100644
--- a/src/hci.c
+++ b/src/hci.c
@@ -425,6 +425,7 @@ int hci_devid(char *str)
if (hci_devba(id, &ba) < 0)
return -1;
} else {
+ errno = ENODEV;
str2ba(str, &ba);
id = hci_for_each_dev(HCI_UP, __same_bdaddr, (long) &ba);
}