From: Szymon Janc <szymon.janc@tieto.com>
To: linux-bluetooth@vger.kernel.org
Cc: Szymon Janc <szymon.janc@tieto.com>
Subject: [PATCH 4/6] android/hal: Use correct service id for adapter commands
Date: Tue, 22 Oct 2013 18:47:54 +0200 [thread overview]
Message-ID: <1382460476-6604-4-git-send-email-szymon.janc@tieto.com> (raw)
In-Reply-To: <1382460476-6604-1-git-send-email-szymon.janc@tieto.com>
This fix enabling and disabling adapter commands.
---
android/hal-bluetooth.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index 852dc85..d988778 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -104,8 +104,8 @@ static int enable(void)
if (!interface_ready())
return BT_STATUS_NOT_READY;
- return hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_MSG_OP_BT_ENABLE, 0, NULL,
- 0, NULL, NULL);
+ return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH, HAL_MSG_OP_BT_ENABLE, 0,
+ NULL, 0, NULL, NULL);
}
static int disable(void)
@@ -115,8 +115,8 @@ static int disable(void)
if (!interface_ready())
return BT_STATUS_NOT_READY;
- return hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_MSG_OP_BT_DISABLE, 0, NULL,
- 0, NULL, NULL);
+ return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH, HAL_MSG_OP_BT_DISABLE, 0,
+ NULL, 0, NULL, NULL);
}
static void cleanup(void)
--
1.8.4
next prev parent reply other threads:[~2013-10-22 16:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-22 16:47 [PATCH 1/6] android: Handle mgmt changed events Szymon Janc
2013-10-22 16:47 ` [PATCH 2/6] android: Add initial code for handling adapter commands Szymon Janc
2013-10-22 16:47 ` [PATCH 3/6] adapter: Print debug message with IPC message header parameters Szymon Janc
2013-10-22 16:47 ` Szymon Janc [this message]
2013-10-22 16:47 ` [PATCH 5/6] android: Fix error response for unknown command Szymon Janc
2013-10-22 16:47 ` [PATCH 6/6] adapter: Implement adapter enable and disable commands Szymon Janc
2013-10-22 20:23 ` [PATCH 1/6] android: Handle mgmt changed events Johan Hedberg
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=1382460476-6604-4-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