Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCHv3 1/4] android/hal: Send get_remote_services cmd
@ 2013-11-04  8:06 Marcin Kraglak
  2013-11-04  8:06 ` [PATCHv3 2/4] android: Add stub of get_remote_services command Marcin Kraglak
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Marcin Kraglak @ 2013-11-04  8:06 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Marcin Kraglak

diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index 7334d24..88c7b99 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -515,12 +515,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("bdaddr: %s", bdaddr2str(remote_addr));
 
 	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


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

end of thread, other threads:[~2013-11-04  8:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-04  8:06 [PATCHv3 1/4] android/hal: Send get_remote_services cmd Marcin Kraglak
2013-11-04  8:06 ` [PATCHv3 2/4] android: Add stub of get_remote_services command Marcin Kraglak
2013-11-04  8:24   ` Johan Hedberg
2013-11-04  8:06 ` [PATCHv3 3/4] android: Initial implementation of get_remote_services Marcin Kraglak
2013-11-04  8:06 ` [PATCHv3 4/4] android: Pass found uuids to remote_device_properties_cb Marcin Kraglak
2013-11-04  8:32   ` Szymon Janc

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