summaryrefslogtreecommitdiff
path: root/android/hal-gatt.c
diff options
context:
space:
mode:
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>2014-04-30 11:14:07 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-04-30 17:30:02 +0200
commit7c6628e6f299ca1d048b95bb124151d5dde9968f (patch)
treec6738b12df2d437b72a49d0670e09eea00a3f6fc /android/hal-gatt.c
parent7f58cd98890fbc4531ccb4aaa4bb1e8fb519d879 (diff)
downloadbluez-7c6628e6f299ca1d048b95bb124151d5dde9968f.tar.gz
android/hal-gatt-api: Fix IPC definition for send response
Diffstat (limited to 'android/hal-gatt.c')
-rw-r--r--android/hal-gatt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/android/hal-gatt.c b/android/hal-gatt.c
index 16b560799..e1faccb80 100644
--- a/android/hal-gatt.c
+++ b/android/hal-gatt.c
@@ -1237,9 +1237,12 @@ static bt_status_t send_response(int conn_id, int trans_id, int status,
cmd->conn_id = conn_id;
cmd->trans_id = trans_id;
cmd->status = status;
- cmd->len = sizeof(*response);
+ cmd->handle = response->attr_value.handle;
+ cmd->offset = response->attr_value.offset;
+ cmd->auth_req = response->attr_value.auth_req;
+ cmd->len = response->attr_value.len;
- memcpy(cmd->data, response, sizeof(*response));
+ memcpy(cmd->data, response->attr_value.value, cmd->len);
return hal_ipc_cmd(HAL_SERVICE_ID_GATT,
HAL_OP_GATT_SERVER_SEND_RESPONSE,