This patch add support for reliable write --- android/gatt.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/android/gatt.c b/android/gatt.c index e339789..281f520 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -2294,6 +2294,11 @@ static void handle_client_write_characteristic(const void *buf, uint16_t len) } switch (cmd->write_type) { + case GATT_WRITE_TYPE_PREPARE: + res = gatt_reliable_write_char(dev->attrib, ch->ch.value_handle, + cmd->value, cmd->len, + write_char_cb, cb_data); + break; case GATT_WRITE_TYPE_DEFAULT: res = gatt_write_char(dev->attrib, ch->ch.value_handle, cmd->value, cmd->len, @@ -2593,6 +2598,12 @@ static void handle_client_write_descriptor(const void *buf, uint16_t len) } switch (cmd->write_type) { + case GATT_WRITE_TYPE_PREPARE: + res = gatt_reliable_write_char(dev->attrib, descr->handle, + cmd->value, cmd->len, + write_descr_cb, + cb_data); + break; case GATT_WRITE_TYPE_DEFAULT: res = gatt_write_char(dev->attrib, descr->handle, cmd->value, cmd->len, write_descr_cb, cb_data); -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html