From: Szymon Janc Date: Tue, 22 Oct 2013 16:47:54 +0000 (+0200) Subject: android/hal: Use correct service id for adapter commands X-Git-Tag: android-x86-4.4-r3~7237 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1cb38bbfddd72debeccab82ffc8ba7861a3b96ea;p=android-x86%2Fexternal-bluetooth-bluez.git android/hal: Use correct service id for adapter commands This fix enabling and disabling adapter commands. --- diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index 852dc85d8..d9887789d 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -104,8 +104,8 @@ static int enable(void) if (!interface_ready()) return BT_STATUS_NOT_READY; - return hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_MSG_OP_BT_ENABLE, 0, NULL, - 0, NULL, NULL); + return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH, HAL_MSG_OP_BT_ENABLE, 0, + NULL, 0, NULL, NULL); } static int disable(void) @@ -115,8 +115,8 @@ static int disable(void) if (!interface_ready()) return BT_STATUS_NOT_READY; - return hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_MSG_OP_BT_DISABLE, 0, NULL, - 0, NULL, NULL); + return hal_ipc_cmd(HAL_SERVICE_ID_BLUETOOTH, HAL_MSG_OP_BT_DISABLE, 0, + NULL, 0, NULL, NULL); } static void cleanup(void)