Return-Path: From: Jakub Tyszkowski To: linux-bluetooth@vger.kernel.org Cc: Jakub Tyszkowski Subject: [PATCH 2/6] android/gatt: Support write request test command Date: Thu, 29 May 2014 15:05:00 +0200 Message-Id: <1401368704-4265-2-git-send-email-jakub.tyszkowski@tieto.com> In-Reply-To: <1401368704-4265-1-git-send-email-jakub.tyszkowski@tieto.com> References: <1401368704-4265-1-git-send-email-jakub.tyszkowski@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: 'u2' parameter is used to pass handle value. --- android/gatt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/gatt.c b/android/gatt.c index 5919377..85c7b84 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -3476,6 +3476,9 @@ static uint8_t handle_test_command_read_write(bdaddr_t *bdaddr, bt_uuid_t *uuid, case ATT_OP_READ_MULTI_REQ: return HAL_STATUS_UNSUPPORTED; case ATT_OP_WRITE_REQ: + length = enc_write_req(u2, (uint8_t *) &u3, sizeof(u3), pdu, + mtu); + break; case ATT_OP_WRITE_CMD: case ATT_OP_PREP_WRITE_REQ: case ATT_OP_EXEC_WRITE_REQ: -- 1.9.3