From: Szymon Janc <szymon.janc@tieto.com>
To: linux-bluetooth@vger.kernel.org
Cc: Szymon Janc <szymon.janc@tieto.com>
Subject: [PATCH 1/4] android/hal-gatt: Fix missing check if interface is ready
Date: Mon, 26 May 2014 17:03:44 +0200 [thread overview]
Message-ID: <1401116627-28767-1-git-send-email-szymon.janc@tieto.com> (raw)
---
android/hal-gatt.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/android/hal-gatt.c b/android/hal-gatt.c
index 93dc066..6f0d2c5 100644
--- a/android/hal-gatt.c
+++ b/android/hal-gatt.c
@@ -573,6 +573,9 @@ static bt_status_t register_client(bt_uuid_t *uuid)
{
struct hal_cmd_gatt_client_register cmd;
+ if (!interface_ready())
+ return BT_STATUS_NOT_READY;
+
memcpy(cmd.uuid, uuid, sizeof(*uuid));
return hal_ipc_cmd(HAL_SERVICE_ID_GATT, HAL_OP_GATT_CLIENT_REGISTER,
--
1.9.1
next reply other threads:[~2014-05-26 15:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 15:03 Szymon Janc [this message]
2014-05-26 15:03 ` [PATCH 2/4] android/README: Update required kernel options Szymon Janc
2014-05-26 15:03 ` [PATCH 3/4] android/pts: Update GATT tests results Szymon Janc
2014-05-26 15:03 ` [PATCH 4/4] android/README: Update information about GATT HAL support Szymon Janc
2014-05-26 22:11 ` [PATCH 1/4] android/hal-gatt: Fix missing check if interface is ready 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=1401116627-28767-1-git-send-email-szymon.janc@tieto.com \
--to=szymon.janc@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 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).