It is needed while we pass read request to framework. --- android/gatt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/gatt.c b/android/gatt.c index 2a2e649..f2fd17d 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -4337,6 +4337,7 @@ static uint8_t read_by_type(const uint8_t *cmd, uint16_t cmd_len, return ATT_ECODE_INSUFF_RESOURCES; } + data->length = READ_INIT; data->handle = handle; queue_push_tail(device->pending_requests, data); } @@ -4550,6 +4551,7 @@ static uint8_t find_by_type_request(const uint8_t *cmd, uint16_t cmd_len, return ATT_ECODE_INSUFF_RESOURCES; } + data->length = READ_INIT; data->handle = handle; data->filter_vlen = search_vlen; memcpy(data->filter_value, search_value, search_vlen); -- 1.9.0 -- 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