From: Szymon Janc <szymon.janc@tieto.com>
To: <linux-bluetooth@vger.kernel.org>
Cc: Marcin Kraglak <marcin.kraglak@tieto.com>
Subject: [PATCH 2/5] android/hal: Add support for sending get_remote_services command
Date: Thu, 31 Oct 2013 16:25:49 +0100 [thread overview]
Message-ID: <1383233152-15040-2-git-send-email-szymon.janc@tieto.com> (raw)
In-Reply-To: <1383233152-15040-1-git-send-email-szymon.janc@tieto.com>
From: Marcin Kraglak <marcin.kraglak@tieto.com>
Change-Id: I99c92d8a3f3d915d1e06ecad2515fcbcbb5b660a
---
android/hal-bluetooth.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index a6228d7..4eab869 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -476,12 +476,18 @@ static int get_remote_service_record(bt_bdaddr_t *remote_addr, bt_uuid_t *uuid)
static int get_remote_services(bt_bdaddr_t *remote_addr)
{
+ struct hal_cmd_get_remote_services cmd;
+
DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
- return BT_STATUS_UNSUPPORTED;
+ memcpy(cmd.bdaddr, remote_addr, sizeof(cmd.bdaddr));
+
+ return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH,
+ HAL_OP_GET_REMOTE_SERVICES, sizeof(cmd),
+ &cmd, 0, NULL, NULL);
}
static int start_discovery(void)
--
1.8.4.1
next prev parent reply other threads:[~2013-10-31 15:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-31 15:25 [PATCH 1/5] android: Fix typo in get_remote_services command Szymon Janc
2013-10-31 15:25 ` Szymon Janc [this message]
2013-10-31 15:25 ` [PATCH 3/5] android: Add stub for handling " Szymon Janc
2013-10-31 15:25 ` [PATCH 4/5] android: Initial implementation of get_remote_services Szymon Janc
2013-10-31 15:25 ` [PATCH 5/5] android: Pass found uuids to remote_device_properties_cb Szymon Janc
2013-10-31 18:27 ` Luiz Augusto von Dentz
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=1383233152-15040-2-git-send-email-szymon.janc@tieto.com \
--to=szymon.janc@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcin.kraglak@tieto.com \
/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