Skip to contentSkip to conversation

core: Fix adding BR/EDR devices to auto connect list

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Mar 13, 2014 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 core: Fix adding BR/EDR devices to auto connect list

From: Luiz Augusto von Dentz <[email protected]>

This can happen with devices that export ATT profiles as SDP records such BlackBerry phones causing drivers to get probed which then call btd_device_add_attio_callback to get notified once connected.

---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/device.c +1 -1
index e624445..46e881c 100644
@@ -3908,7 +3908,7 @@ static void device_set_auto_connect(struct btd_device *device, gboolean enable)
 {
 	char addr[18];
 
-	if (!device)
+	if (!device || !device->le)
 		return;
 
 	ba2str(&device->bdaddr, addr);
Signature · 1 line
1.8.5.3
#1 lore raw

Hi Luiz,

Quoted 6 lines · Luiz Augusto von Dentz

This can happen with devices that export ATT profiles as SDP records such BlackBerry phones causing drivers to get probed which then call btd_device_add_attio_callback to get notified once connected.

---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied. Thanks.

Johan