From: Wootak Jung Date: Mon, 3 Feb 2020 08:43:04 +0000 (+0900) Subject: Remove cleanup logic before getting primary services X-Git-Tag: accepted/tizen/5.5/unified/20200312.234620~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F227158%2F1;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Remove cleanup logic before getting primary services gatt list should not be freed while search result event is coming Change-Id: I1630ddea38bdcb4bbfa32423d2d8565bb284ad64 --- diff --git a/bt-service-adaptation/services/gatt/bt-service-gatt.c b/bt-service-adaptation/services/gatt/bt-service-gatt.c index 28ffbfb..ed7122d 100644 --- a/bt-service-adaptation/services/gatt/bt-service-gatt.c +++ b/bt-service-adaptation/services/gatt/bt-service-gatt.c @@ -180,8 +180,7 @@ typedef struct { int inst_id; } bt_gatt_included_service_info_t; -GSList *list_gatt_info; - +static GSList *list_gatt_info = NULL; #endif @@ -4315,10 +4314,6 @@ int _bt_gatt_get_primary_services(char *address) return BLUETOOTH_ERROR_NOT_CONNECTED; } - BT_INFO("Remove GATT server info from List.."); - /* Remove all services from info list_gatt_info */ - __bt_cleanup_remote_services(conn_info); - /* Send Primary Service Browsing request to stack */ ret = gattc_search_service(conn_info->connection_id, NULL); if (ret != OAL_STATUS_SUCCESS) {