Return-Path: From: Jakub Tyszkowski To: linux-bluetooth@vger.kernel.org Cc: Jakub Tyszkowski Subject: [PATCH 2/5] android/gatt: Fix not confirming write commands in database Date: Mon, 8 Dec 2014 09:22:37 +0100 Message-Id: <1418026960-21104-2-git-send-email-jakub.tyszkowski@tieto.com> In-Reply-To: <1418026960-21104-1-git-send-email-jakub.tyszkowski@tieto.com> References: <1418026960-21104-1-git-send-email-jakub.tyszkowski@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: App will never confirm write command as commands dont need one but we still need to confirm in databasse. We confirm immediately. --- android/gatt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/gatt.c b/android/gatt.c index 4ad0ce9..cb87810 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -4904,6 +4904,8 @@ static void write_cb(struct gatt_db_attribute *attrib, unsigned int id, if (opcode == ATT_OP_WRITE_REQ || opcode == ATT_OP_PREP_WRITE_REQ) ev->need_rsp = 0x01; + else + gatt_db_attribute_write_result(attrib, id, 0); ev->length = len; memcpy(ev->value, value, len); -- 1.9.1