--- android/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index 004063c..f303aea 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -1839,7 +1839,7 @@ static bool build_descr_cache(int32_t conn_id, struct gatt_device *dev, /* Clip range to given characteristic */ start = ch->ch.value_handle + 1; - end = srvc->prim.range.end; + end = srvc->primary ? srvc->prim.range.end : srvc->incl.range.end; /* Use next characteristic start as end. If there is none - * service end is valid end. -- 1.9.1 -- 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