Fix hci_devba check.

This commit is contained in:
Luiz Augusto von Dentz 2007-10-24 21:22:40 +00:00
parent d05be53901
commit ac568573b2

View File

@ -1100,7 +1100,7 @@ static void register_devices_stored(const char *adapter)
bacpy(&default_src, BDADDR_ANY);
dev_id = hci_get_route(&default_src);
if (dev_id < 0 || hci_devba(dev_id, &default_src))
if (dev_id < 0 || hci_devba(dev_id, &default_src) < 0)
return;
if (bacmp(&default_src, &src) != 0)