Return-Path: From: Mariusz Skamra To: linux-bluetooth@vger.kernel.org Cc: Mariusz Skamra Subject: [PATCH 2/4] android/gatt: Fix status in write descriptor cb Date: Fri, 3 Oct 2014 14:57:59 +0200 Message-Id: <1412341081-20594-2-git-send-email-mariusz.skamra@tieto.com> In-Reply-To: <1412341081-20594-1-git-send-email-mariusz.skamra@tieto.com> References: <1412341081-20594-1-git-send-email-mariusz.skamra@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: This fixes problem with status value. Status should be updated in hal_gatt_write_params as well. --- android/gatt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/android/gatt.c b/android/gatt.c index dbe067f..cc554d4 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -3480,6 +3480,7 @@ static void send_client_descr_write_notify(int32_t status, int32_t conn_id, element_id_to_hal_srvc_id(srvc, primary, &ev->data.srvc_id); element_id_to_hal_gatt_id(ch, &ev->data.char_id); element_id_to_hal_gatt_id(descr, &ev->data.descr_id); + ev->data.status = status; ipc_send_notif(hal_ipc, HAL_SERVICE_ID_GATT, HAL_EV_GATT_CLIENT_WRITE_DESCRIPTOR, -- 1.9.1