Diff between 76384da137ed94abb03f0c4b697bd31ef9d1c4d6 and e9336144bb19251f1fb8e57265ab43c699262987
Changed Files
| File | Additions | Deletions | Status |
| android/hal-bluetooth.c | +11 | -1 | modified |
Full Patch
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index 2c8a902..d5019a4 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -98,9 +98,19 @@ fail:
static int enable(void)
{
+ int ret;
+
DBG("");
- return BT_STATUS_UNSUPPORTED;
+ if (!interface_ready())
+ return BT_STATUS_NOT_READY;
+
+ ret = hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_MSG_OP_BT_ENABLE, 0, NULL,
+ 0, NULL, NULL);
+ if (ret < 0)
+ return -ret;
+
+ return BT_STATUS_SUCCESS;
}
static int disable(void)