From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ] core: Fix adding BR/EDR devices to auto connect list
Date: Thu, 13 Mar 2014 16:17:42 +0200 [thread overview]
Message-ID: <1394720262-460-1-git-send-email-luiz.dentz@gmail.com> (raw)
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
next reply other threads:[~2014-03-13 14:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-13 14:17 Luiz Augusto von Dentz [this message]
2014-03-13 16:30 ` [PATCH BlueZ] core: Fix adding BR/EDR devices to auto connect list Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1394720262-460-1-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox