From a97982a4de4052e78fe19dd98be79fcbcaefc858 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 4 Dec 2018 16:17:57 -0300 Subject: [PATCH] gatt: Register GATT and GAP services as SDP records This ensures that GATT and GAP services can be discover over SDP as well as over GATT. Change-Id: Ibf4ac7da55ba8eb63d5e5eacf0b8ded6ae4f1aa5 Signed-off-by: himanshu --- src/gatt-database.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gatt-database.c b/src/gatt-database.c index ba09a34..be0a634 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -993,6 +993,8 @@ static void populate_gap_service(struct btd_gatt_database *database) #endif gatt_db_service_set_active(service, true); + + database_add_record(database, service); } static void gatt_ccc_read_cb(struct gatt_db_attribute *attrib, @@ -1246,6 +1248,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.7.4