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:
3dbfab4
)
android: Fix use of invalid service ID in response
author
Szymon Janc
<szymon.janc@tieto.com>
Wed, 23 Oct 2013 13:46:26 +0000
(15:46 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Wed, 23 Oct 2013 16:33:22 +0000
(19:33 +0300)
Adapter should use HAL_SERVICE_ID_BLUETOOTH service ID.
android/adapter.c
patch
|
blob
|
history
diff --git
a/android/adapter.c
b/android/adapter.c
index
7a219df
..
6b0fab2
100644
(file)
--- a/
android/adapter.c
+++ b/
android/adapter.c
@@
-347,7
+347,8
@@
void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf,
}
if (set_mode(MGMT_OP_SET_POWERED, 0x01)) {
- ipc_send(io, HAL_SERVICE_ID_CORE, opcode, 0, NULL, -1);
+ ipc_send(io, HAL_SERVICE_ID_BLUETOOTH, opcode, 0, NULL,
+ -1);
return;
}
break;
@@
-358,7
+359,8
@@
void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf,
}
if (set_mode(MGMT_OP_SET_POWERED, 0x00)) {
- ipc_send(io, HAL_SERVICE_ID_CORE, opcode, 0, NULL, -1);
+ ipc_send(io, HAL_SERVICE_ID_BLUETOOTH, opcode, 0, NULL,
+ -1);
return;
}
break;