gatt: Register GATT and GAP services as SDP records
Luiz Augusto von Dentz
maintainerPATCH 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
@@ -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
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@@ -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