linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] gatt: Register GATT and GAP services as SDP records
@ 2018-12-04 19:44 Luiz Augusto von Dentz
  2018-12-05 12:09 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2018-12-04 19:44 UTC (permalink / raw)
  To: linux-bluetooth

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

This ensures that GATT and GAP services can be discover over SDP as well
as over GATT.
---
 src/gatt-database.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gatt-database.c b/src/gatt-database.c
index c31afa0e9..2c2f035b1 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -847,6 +847,8 @@ static void populate_gap_service(struct btd_gatt_database *database)
 							NULL, database);
 
 	gatt_db_service_set_active(service, true);
+
+	database_add_record(database, service);
 }
 
 static void gatt_ccc_read_cb(struct gatt_db_attribute *attrib,
@@ -1071,6 +1073,8 @@ static void populate_gatt_service(struct btd_gatt_database *database)
 									NULL);
 
 	gatt_db_service_set_active(service, true);
+
+	database_add_record(database, service);
 }
 
 static void register_core_services(struct btd_gatt_database *database)
-- 
2.17.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-05 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04 19:44 [PATCH BlueZ] gatt: Register GATT and GAP services as SDP records Luiz Augusto von Dentz
2018-12-05 12:09 ` Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).