From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ] gatt: Fix checking for paired flag instead of bonded
Date: Tue, 27 Mar 2018 18:38:20 +0300 [thread overview]
Message-ID: <20180327153820.25606-1-luiz.dentz@gmail.com> (raw)
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Device state should remain valid for devices that are bonded/stored not
only paired.
---
src/gatt-database.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gatt-database.c b/src/gatt-database.c
index 2c2526f74..5e2390b34 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -324,7 +324,7 @@ static void att_disconnected(int err, void *user_data)
if (!device)
goto remove;
- if (device_is_paired(device, state->bdaddr_type))
+ if (device_is_bonded(device, state->bdaddr_type))
return;
remove:
@@ -1125,7 +1125,7 @@ static void send_notification_to_device(void *data, void *user_data)
server = btd_device_get_gatt_server(device);
if (!server) {
- if (!device_is_paired(device, device_state->bdaddr_type))
+ if (!device_is_bonded(device, device_state->bdaddr_type))
goto remove;
state_set_pending(device_state, notify);
return;
--
2.14.3
next reply other threads:[~2018-03-27 15:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-27 15:38 Luiz Augusto von Dentz [this message]
2018-03-28 6:44 ` [PATCH BlueZ] gatt: Fix checking for paired flag instead of bonded Szymon Janc
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=20180327153820.25606-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