[PATCH BlueZ 1/2] shared/gatt-client: Make it possible to clone non-ready clients

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

 



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

This is necessary in order to be possible to send commands while the
discovery is in progress.
---
 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 1dd6b22..8fa66ae 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
@@ -1722,7 +1722,7 @@ struct bt_gatt_client *bt_gatt_client_clone(struct bt_gatt_client *client)
 {
 	struct bt_gatt_client *clone;
 
-	if (!client || !client->ready)
+	if (!client)
 		return NULL;
 
 	clone = gatt_client_new(client->db, client->att);
-- 
2.5.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



[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