Skip to contentSkip to conversation

gatt: Register GATT and GAP services as SDP records

PATCH Applied Luiz Augusto von Dentz 1 participant 2 messages Dec 4, 2018 – Dec 5, 2018 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 gatt: Register GATT and GAP services as SDP records

From: Luiz Augusto von Dentz <[email protected]>

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(+)
src/gatt-database.c +4 -0
index c31afa0e9..2c2f035b1 100644
@@ -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)
Signature · 1 line
2.17.2
author maintainer Applied
#1 lore raw

Hi,

Quoted 32 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

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(+)
src/gatt-database.c +4 -1
index c31afa0e9..2c2f035b1 100644
@@ -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)
--
Quoted 1 line

2.17.2

Applied.

Signature · 1 line
Luiz Augusto von Dentz