Diff between e9336144bb19251f1fb8e57265ab43c699262987 and 058537f9aa358a1340ac586dddd8a04ea30a9edc
Changed Files
| File | Additions | Deletions | Status |
| android/hal-bluetooth.c | +8 | -1 | modified |
Full Patch
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)