diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-04-16 22:23:29 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-04-16 22:23:29 +0000 |
commit | 2d09985d7bc2333ad4bb24e4f1790acd8ec1467b (patch) | |
tree | b4f8ad64aa7028c52d3fbbfaf6f6de70c5123706 /hcid | |
parent | 28a77bb7c841ce428071f6b6edd3539e1f8dc16a (diff) |
Fix address based configuration
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/main.c | 2 |
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); |