From e549aca0820bd58dc7b714f365ff0c46a941dc65 Mon Sep 17 00:00:00 2001 From: Max Krasnyansky Date: Tue, 18 Jun 2002 18:48:36 +0000 Subject: Return correct error if adds was not found. --- src/hci.c | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit