From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ] core/adapter: Fix not updating names of connected devices
Date: Mon, 12 Dec 2016 16:24:23 +0200 [thread overview]
Message-ID: <20161212142423.31086-1-luiz.dentz@gmail.com> (raw)
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
If there is a device found event for a connected device let it update
the name as the device may still be temporary but it might be useful to
display a proper name while profile connections or paring are pending.
---
src/adapter.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/adapter.c b/src/adapter.c
index d951307..3dac7d6 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -5631,10 +5631,11 @@ static void update_found_devices(struct btd_adapter *adapter,
device_store_cached_name(dev, eir_data.name);
/*
- * If no client has requested discovery, then only update
- * already paired devices (skip temporary ones).
+ * Only skip devices that are not connected, are temporary and there
+ * is no active discovery session ongoing.
*/
- if (device_is_temporary(dev) && !adapter->discovery_list) {
+ if (!btd_device_is_connected(dev) && (device_is_temporary(dev) &&
+ !adapter->discovery_list)) {
eir_data_free(&eir_data);
return;
}
--
2.9.3
reply other threads:[~2016-12-12 14:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20161212142423.31086-1-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;
as well as URLs for NNTP newsgroup(s).