From bf963a26c439b729af56f21f88bc91a756fdaf22 Mon Sep 17 00:00:00 2001 From: Jakub Tyszkowski Date: Wed, 10 Dec 2014 10:57:08 +0100 Subject: [PATCH] android/gatt: Fix offset in prepare write notifications This fixes TC_GAW_SR_BI_07_C and probably few other cases. --- android/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index f39a66b52..e24feb730 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -6448,7 +6448,7 @@ static uint8_t write_prep_request(const uint8_t *cmd, uint16_t cmd_len, data->value = g_memdup(value, vlen); data->length = vlen; - if (!gatt_db_attribute_write(attrib, 0, value, vlen, cmd[0], + if (!gatt_db_attribute_write(attrib, offset, value, vlen, cmd[0], &dev->bdaddr, attribute_write_cb, data)) { queue_remove(dev->pending_requests, data); -- 2.47.3