Linux bluetooth development
 help / color / mirror / Atom feed
From: Szymon Janc <szymon.janc@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Szymon Janc <szymon.janc@gmail.com>
Subject: [PATCH 6/7] android/haltest: Implement missing functions from bluetooth HAL
Date: Mon, 30 Dec 2013 23:43:40 +0100	[thread overview]
Message-ID: <1388443421-6295-6-git-send-email-szymon.janc@gmail.com> (raw)
In-Reply-To: <1388443421-6295-1-git-send-email-szymon.janc@gmail.com>

Implement functions added in Android 4.3+ to Bluetooth HAL.
---
 android/client/if-bt.c | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/android/client/if-bt.c b/android/client/if-bt.c
index 0cd43db..10b79f1 100644
--- a/android/client/if-bt.c
+++ b/android/client/if-bt.c
@@ -797,6 +797,36 @@ static void dut_mode_configure_p(int argc, const char **argv)
 	EXEC(if_bluetooth->dut_mode_configure, mode);
 }
 
+static void dut_mode_send_p(int argc, const char **argv)
+{
+	haltest_error("not implemented\n");
+}
+
+#if PLATFORM_SDK_VERSION > 17
+static void le_test_mode_p(int argc, const char **argv)
+{
+	haltest_error("not implemented\n");
+}
+#endif
+
+#if PLATFORM_SDK_VERSION > 18
+static void config_hci_snoop_log_p(int argc, const char **argv)
+{
+	uint8_t mode;
+
+	RETURN_IF_NULL(if_bluetooth);
+
+	if (argc <= 2) {
+		haltest_error("No mode specified\n");
+		return;
+	}
+
+	mode = strtol(argv[2], NULL, 0);
+
+	EXEC(if_bluetooth->config_hci_snoop_log, mode);
+}
+#endif
+
 static struct method methods[] = {
 	STD_METHOD(init),
 	STD_METHOD(cleanup),
@@ -820,6 +850,13 @@ static struct method methods[] = {
 	STD_METHODCH(ssp_reply, "<address> <ssp_veriant> 1|0 [<passkey>]"),
 	STD_METHODCH(get_profile_interface, "<profile id>"),
 	STD_METHODH(dut_mode_configure, "<dut mode>"),
+	STD_METHOD(dut_mode_send),
+#if PLATFORM_SDK_VERSION > 17
+	STD_METHOD(le_test_mode),
+#endif
+#if PLATFORM_SDK_VERSION > 18
+	STD_METHODH(config_hci_snoop_log, "<mode>"),
+#endif
 	END_METHOD
 };
 
-- 
1.8.5.2


  parent reply	other threads:[~2013-12-30 22:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-30 22:43 [PATCH 1/7] android: Add HCI snooping tool Szymon Janc
2013-12-30 22:43 ` [PATCH 2/7] android/hal-bluetooth: Update snoop service name Szymon Janc
2013-12-30 22:43 ` [PATCH 3/7] android: Add support for bluetoothd-snoop service in system-emulator Szymon Janc
2013-12-30 22:43 ` [PATCH 4/7] android/hal-bluetooth: Add debug print to config_hci_snoop_log Szymon Janc
2013-12-30 22:43 ` [PATCH 5/7] android/haltest: Improve EXEC macro robustness Szymon Janc
2013-12-30 22:43 ` Szymon Janc [this message]
2013-12-30 22:43 ` [PATCH 7/7] android/build: Fix building HAL library on Linux Szymon Janc
2014-01-01 16:30 ` [PATCH 1/7] android: Add HCI snooping tool 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=1388443421-6295-6-git-send-email-szymon.janc@gmail.com \
    --to=szymon.janc@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