Adapter should use HAL_SERVICE_ID_BLUETOOTH service ID. --- android/adapter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/android/adapter.c b/android/adapter.c index 7a219df..6b0fab2 100644 --- 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; -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html