OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef4e9a8
)
android/hal: Send get_remote_services cmd
author
Marcin Kraglak
<marcin.kraglak@tieto.com>
Mon, 4 Nov 2013 08:06:47 +0000
(09:06 +0100)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Mon, 4 Nov 2013 08:20:07 +0000
(10:20 +0200)
android/hal-bluetooth.c
patch
|
blob
|
history
diff --git
a/android/hal-bluetooth.c
b/android/hal-bluetooth.c
index
7334d24
..
88c7b99
100644
(file)
--- 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)