[PATCH v2 03/10] shared/gatt-client: Insert included attribute with handle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

This ensures the local representation matches exactly the handle used
by the remote in its database.
---
 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 0134721..3caed5f 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -457,7 +457,7 @@ static void discover_incl_cb(bool success, uint8_t att_ecode,
 		if (!tmp)
 			goto failed;
 
-		tmp = gatt_db_service_add_included(attr, tmp);
+		tmp = gatt_db_service_insert_included(attr, handle, tmp);
 		if (!tmp)
 			goto failed;
 
-- 
2.9.3

--
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



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux