summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-04-16 22:23:29 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-04-16 22:23:29 +0000
commit2d09985d7bc2333ad4bb24e4f1790acd8ec1467b (patch)
treeb4f8ad64aa7028c52d3fbbfaf6f6de70c5123706 /hcid
parent28a77bb7c841ce428071f6b6edd3539e1f8dc16a (diff)
Fix address based configuration
Diffstat (limited to 'hcid')
-rw-r--r--hcid/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/main.c b/hcid/main.c
index be2a72cd..641cc801 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -120,7 +120,7 @@ static struct device_opts *get_device_opts(int hdev)
struct hci_dev_info di;
/* First try to get BD_ADDR based settings ... */
- if (!hci_devinfo(hdev, &di) < 0) {
+ if (hci_devinfo(hdev, &di) == 0) {
char addr[18];
ba2str(&di.bdaddr, addr);
device_opts = find_device_opts(addr);