[PATCH BlueZ 2/3] shared/ad: Fix service data matching

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

 



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

bt_uuid_cmp return 0 if it matches not a true.
---
 src/shared/ad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/ad.c b/src/shared/ad.c
index 57f0a16..e841d1d 100644
--- a/src/shared/ad.c
+++ b/src/shared/ad.c
@@ -576,7 +576,7 @@ static bool service_uuid_match(const void *data, const void *user_data)
 	const struct bt_ad_service_data *s = data;
 	const bt_uuid_t *uuid = user_data;
 
-	return bt_uuid_cmp(&s->uuid, uuid);
+	return !bt_uuid_cmp(&s->uuid, uuid);
 }
 
 bool bt_ad_add_service_data(struct bt_ad *ad, const bt_uuid_t *uuid, void *data,
-- 
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




[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