Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/5] android/hal-pan: Add implementation of .init
@ 2013-10-28 12:09 Luiz Augusto von Dentz
  2013-10-28 12:09 ` [PATCH BlueZ 2/5] android/hal-pan: Add implementation of .enable Luiz Augusto von Dentz
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Luiz Augusto von Dentz @ 2013-10-28 12:09 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

---
 android/hal-pan.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/android/hal-pan.c b/android/hal-pan.c
index 609bc1c..62fec00 100644
--- a/android/hal-pan.c
+++ b/android/hal-pan.c
@@ -20,6 +20,8 @@
 
 #include "hal-log.h"
 #include "hal.h"
+#include "hal-msg.h"
+#include "hal-ipc.h"
 
 static const btpan_callbacks_t *cbs = NULL;
 
@@ -77,15 +79,16 @@ static bt_status_t pan_disconnect(const bt_bdaddr_t *bd_addr)
 
 static bt_status_t pan_init(const btpan_callbacks_t *callbacks)
 {
+	struct hal_cmd_register_module cmd;
+
 	DBG("");
 
 	cbs = callbacks;
 
-	/* TODO: start HID Host thread */
-
-	/* TODO: enable service */
+	cmd.service_id = HAL_SERVICE_ID_PAN;
 
-	return BT_STATUS_SUCCESS;
+	return hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_OP_REGISTER_MODULE,
+					sizeof(cmd), &cmd, 0, NULL, NULL);
 }
 
 static void pan_cleanup()
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-28 12:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-28 12:09 [PATCH BlueZ 1/5] android/hal-pan: Add implementation of .init Luiz Augusto von Dentz
2013-10-28 12:09 ` [PATCH BlueZ 2/5] android/hal-pan: Add implementation of .enable Luiz Augusto von Dentz
2013-10-28 12:09 ` [PATCH BlueZ 3/5] android/hal-pan: Add implementation of .get_local_role Luiz Augusto von Dentz
2013-10-28 12:09 ` [PATCH BlueZ 4/5] android/hal-pan: Add implementation of .connect Luiz Augusto von Dentz
2013-10-28 12:09 ` [PATCH BlueZ 5/5] android/hal-pan: Add implementation of .disconnect Luiz Augusto von Dentz
2013-10-28 12:43 ` [PATCH BlueZ 1/5] android/hal-pan: Add implementation of .init Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox