* [PATCH BlueZ] core: Fix adding BR/EDR devices to auto connect list
@ 2014-03-13 14:17 Luiz Augusto von Dentz
2014-03-13 16:30 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2014-03-13 14:17 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
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(-)
diff --git a/src/device.c b/src/device.c
index e624445..46e881c 100644
--- a/src/device.c
+++ b/src/device.c
@@ -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);
--
1.8.5.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-13 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-13 14:17 [PATCH BlueZ] core: Fix adding BR/EDR devices to auto connect list Luiz Augusto von Dentz
2014-03-13 16:30 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox