Return-Path: From: Jakub Tyszkowski To: linux-bluetooth@vger.kernel.org Cc: Jakub Tyszkowski Subject: [PATCH 2/6] android/gatt: Support read request in test command Date: Thu, 29 May 2014 12:34:04 +0200 Message-Id: <1401359648-576-2-git-send-email-jakub.tyszkowski@tieto.com> In-Reply-To: <1401359648-576-1-git-send-email-jakub.tyszkowski@tieto.com> References: <1401359648-576-1-git-send-email-jakub.tyszkowski@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: 'u2' command parameter is used to pass attribute handle. --- android/gatt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/gatt.c b/android/gatt.c index d9a76c6..9153ec8 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -3461,6 +3461,8 @@ static uint8_t handle_test_command_read(bdaddr_t *bdaddr, bt_uuid_t *uuid, switch (read_type) { case ATT_OP_READ_REQ: + length = enc_read_req(u2, pdu, mtu); + break; case ATT_OP_READ_BY_TYPE_REQ: case ATT_OP_READ_BLOB_REQ: case ATT_OP_READ_BY_GROUP_REQ: -- 1.9.3