Diff between 5adcc6c7716fcb119e19664901c0386eb167261a and 51251a711bf71fa4efb38a6da09d8ac040741cbc

Changed Files

File Additions Deletions Status
android/gatt.c +3 -0 modified

Full Patch

diff --git a/android/gatt.c b/android/gatt.c
index d7228a3..8b0833c 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -85,6 +85,7 @@ struct characteristic {
 struct service {
 	struct element_id id;
 	struct gatt_primary prim;
+	bool primary;
 
 	struct queue *chars;
 };
@@ -526,6 +527,8 @@ static void primary_cb(uint8_t status, GSList *services, void *user_data)
 
 		/* Put primary service to our local list */
 		memcpy(&p->prim, prim, sizeof(p->prim));
+		p->primary = true;
+
 		if (!queue_push_tail(dev->services, p)) {
 			error("gatt: Cannot push primary service to the list");
 			free(p);