--- android/hal-bluetooth.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index d5019a4..efc5962 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -115,12 +115,19 @@ static int enable(void) static int disable(void) { + int ret; + DBG(""); if (!interface_ready()) return BT_STATUS_NOT_READY; - return BT_STATUS_UNSUPPORTED; + ret = hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_MSG_OP_BT_DISABLE, 0, NULL, + 0, NULL, NULL); + if (ret < 0) + return -ret; + + return BT_STATUS_SUCCESS; } static void cleanup(void) -- 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