From: Luiz Augusto von Dentz <redacted>
Device using private address cannot be programmed into the auto_connect
list without them being paired and its IRK being distributed otherwise
there is no way to resolve it address and the command will fail.
---
src/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/device.c b/src/device.c
index e0ff0b1c1543..f6b0167bf55b 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2006,7 +2006,7 @@ static void device_set_auto_connect(struct btd_device *device, gboolean enable)
{
char addr[18];
- if (!device || !device->le)
+ if (!device || !device->le || device_address_is_private(device))
return;
ba2str(&device->bdaddr, addr);--
2.41.0