All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] device: Don't attempt to set auto_connect for devices using RPAs
@ 2023-08-17 22:41 Luiz Augusto von Dentz
  2023-08-17 22:41 ` [PATCH BlueZ 2/2] device: Restart temporary timer while connecting Luiz Augusto von Dentz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2023-08-17 22:41 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-18 20:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-17 22:41 [PATCH BlueZ 1/2] device: Don't attempt to set auto_connect for devices using RPAs Luiz Augusto von Dentz
2023-08-17 22:41 ` [PATCH BlueZ 2/2] device: Restart temporary timer while connecting Luiz Augusto von Dentz
2023-08-18  0:35 ` [BlueZ,1/2] device: Don't attempt to set auto_connect for devices using RPAs bluez.test.bot
2023-08-18 20:50 ` [PATCH BlueZ 1/2] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.