From 2ae06e9e9ae1919a13a59b1f46f0f390f23935eb Mon Sep 17 00:00:00 2001 From: Mariusz Skamra Date: Mon, 6 Oct 2014 16:28:47 +0200 Subject: [PATCH] android/gatt: Fix status in write descriptor cb 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 718b1378c..ea20941e4 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, -- 2.47.3