From: Keng-Yu Lin <kengyu@ubuntu.com>
To: linux-bluetooth@vger.kernel.org
Cc: Keng-Yu Lin <kengyu@ubuntu.com>
Subject: [RFC] Bluez: Fix the adapter is not initialised after resume
Date: Thu, 13 Oct 2011 09:35:12 +0800 [thread overview]
Message-ID: <1318469712-6639-1-git-send-email-kengyu@ubuntu.com> (raw)
In-Reply-To: <CADXHx7Z=9EFEweZ+LouXWdRePu6OBrj36uGA78=BMKjo0oMEJQ@mail.gmail.com>
init_adapter() is not called due to missing HCI commands of
read_bd_addr, read_local_version, read_local_features,
and read_local_name on some machines.
---
plugins/hciops.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Please see the links of the bug in different distros:
https://bugzilla.redhat.com/show_bug.cgi?id=727106
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614929
https://launchpad.net/bugs/824144
https://launchpad.net/bugs/824633
https://launchpad.net/bugs/823467
https://launchpad.net/bugs/822705
It is confirmed that this patch fixes for Dell Latutude 2120
and EeePC 1001PXD.
diff --git a/plugins/hciops.c b/plugins/hciops.c
index 9fb28c8..5f339c1 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -2502,8 +2502,8 @@ static void device_devup_setup(int index)
hci_send_cmd(dev->sk, OGF_HOST_CTL, OCF_READ_STORED_LINK_KEY,
READ_STORED_LINK_KEY_CP_SIZE, &cp);
- if (!dev->pending)
- init_adapter(index);
+ DBG("dev->pending=%d", dev->pending);
+ init_adapter(index);
}
static void init_pending(int index)
--
1.7.5.4
next prev parent reply other threads:[~2011-10-13 1:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-27 8:25 Bug: bluetooth not working after suspend/resume Keng-Yü Lin
2011-09-27 13:52 ` etsang
2011-09-27 13:55 ` sunil.kumar5
2011-10-13 1:35 ` Keng-Yu Lin [this message]
2011-10-13 7:35 ` [RFC] Bluez: Fix the adapter is not initialised after resume Luiz Augusto von Dentz
2011-10-13 11:23 ` Luiz Augusto von Dentz
2011-10-19 10:30 ` Keng-Yü Lin
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=1318469712-6639-1-git-send-email-kengyu@ubuntu.com \
--to=kengyu@ubuntu.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