Remove cleanup logic before getting primary services 58/227158/1
authorWootak Jung <wootak.jung@samsung.com>
Mon, 3 Feb 2020 08:43:04 +0000 (17:43 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Tue, 10 Mar 2020 05:39:20 +0000 (14:39 +0900)
gatt list should not be freed while search result event is coming

Change-Id: I1630ddea38bdcb4bbfa32423d2d8565bb284ad64

bt-service-adaptation/services/gatt/bt-service-gatt.c

index 28ffbfb..ed7122d 100644 (file)
@@ -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) {