OSDN Git Service

android/hal-health: Fix passing buf not cmd for passing data
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Mon, 9 Jun 2014 14:28:08 +0000 (17:28 +0300)
committerSzymon Janc <szymon.janc@tieto.com>
Tue, 10 Jun 2014 12:56:29 +0000 (14:56 +0200)
android/hal-health.c

index 427d4c9..8e73905 100644 (file)
@@ -92,7 +92,7 @@ static bt_status_t register_application(bthl_reg_param_t *reg, int *app_id)
 
        cmd->len = off;
        status = hal_ipc_cmd(HAL_SERVICE_ID_HEALTH, HAL_OP_HEALTH_REG_APP,
-                                               sizeof(*cmd) + cmd->len, &cmd,
+                                               sizeof(*cmd) + cmd->len, buf,
                                                        &rsp_len, &rsp, NULL);
 
        if (status != BT_STATUS_SUCCESS)