At present, The validation check logic for GATT service handler is
returning error in some GATT client role's APIs (ex. bt_gatt_get_uuid)
because their handlers were not maintained in the 'gatt_handle_list'.
This change will maintain such handlers.
Change-Id: I39e35f6df7a5de7ea0e574d3ef4a71f1c67c074b
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
client_s->services = g_slist_append(client_s->services, svc);
+ /* Add service to list of GATT handles */
+ gatt_handle_list = g_slist_append(gatt_handle_list, (gpointer)svc);
+
return svc;
}
#else
sec_property.char_handle.handle = NULL;
include_list = g_slist_append(include_list, sec_svc);
+
+ /* Add included service to list of GATT handles */
+ gatt_handle_list = g_slist_append(gatt_handle_list, (gpointer)sec_svc);
next:
bluetooth_gatt_free_service_property(&sec_property);
}