From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> The code should proceed to discover all descriptors before moving to next service otherwise it may attempt to insert characteristics in the wrong service which would probably fail. --- src/shared/gatt-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c index 3e28c6e..729bd87 100644 --- a/src/shared/gatt-client.c +++ b/src/shared/gatt-client.c @@ -690,13 +690,13 @@ static void discover_descs_cb(bool success, uint8_t att_ecode, goto failed; } +next: if (!discover_descs(op, &discovering)) goto failed; if (discovering) return; -next: /* Done with the current service */ gatt_db_service_set_active(op->cur_svc, true); -- 2.1.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