mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-18 01:34:31 +08:00
Fix hci_devba check.
This commit is contained in:
parent
d05be53901
commit
ac568573b2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user