From: Marcin Kraglak <marcin.kraglak@tieto.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH 3/4] android/gatt: Set state of pending responses
Date: Thu, 12 Jun 2014 11:08:25 +0200 [thread overview]
Message-ID: <1402564106-27044-3-git-send-email-marcin.kraglak@tieto.com> (raw)
In-Reply-To: <1402564106-27044-1-git-send-email-marcin.kraglak@tieto.com>
Set state to PENDING before read. If state was not set to PENDING,
response was sent immediatelly even if there was no response from upper
layer.
---
android/gatt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/android/gatt.c b/android/gatt.c
index 7ae0f55..4c2488f 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -4167,6 +4167,8 @@ static void read_requested_attributes(void *data, void *user_data)
if (error)
goto done;
+ resp_data->state = REQUEST_PENDING;
+
if (!gatt_db_read(gatt_db, resp_data->handle,
resp_data->offset,
process_data->opcode,
--
1.9.3
next prev parent reply other threads:[~2014-06-12 9:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-12 9:08 [PATCH 1/4] android/gatt: Change check permissions order Marcin Kraglak
2014-06-12 9:08 ` [PATCH 2/4] android/gatt: Fix incorrect entry check Marcin Kraglak
2014-06-12 9:08 ` Marcin Kraglak [this message]
2014-06-12 9:08 ` [PATCH 4/4] android/pts: Update GAP pts test results Marcin Kraglak
2014-06-12 11:39 ` [PATCH 1/4] android/gatt: Change check permissions order 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=1402564106-27044-3-git-send-email-marcin.kraglak@tieto.com \
--to=marcin.kraglak@tieto.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.