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:
6312df1
)
android/hal: Add support for sending adapter remove bond command
author
Szymon Janc
<szymon.janc@tieto.com>
Fri, 25 Oct 2013 10:50:04 +0000
(12:50 +0200)
committer
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Fri, 25 Oct 2013 11:28:52 +0000
(14:28 +0300)
This allows HAL to remove bonding.
android/hal-bluetooth.c
patch
|
blob
|
history
diff --git
a/android/hal-bluetooth.c
b/android/hal-bluetooth.c
index
ebaa877
..
ca443a6
100644
(file)
--- a/
android/hal-bluetooth.c
+++ b/
android/hal-bluetooth.c
@@
-305,12
+305,17
@@
static int cancel_bond(const bt_bdaddr_t *bd_addr)
static int remove_bond(const bt_bdaddr_t *bd_addr)
{
+ struct hal_cmd_remove_bond cmd;
+
DBG("");
if (!interface_ready())
return BT_STATUS_NOT_READY;
- return BT_STATUS_UNSUPPORTED;
+ memcpy(cmd.bdaddr, bd_addr, sizeof(cmd.bdaddr));
+
+ return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH, HAL_OP_REMOVE_BOND,
+ sizeof(cmd), &cmd, 0, NULL, NULL);
}
static int pin_reply(const bt_bdaddr_t *bd_addr, uint8_t accept,