static void __bt_handle_client_disconnected(event_gattc_conn_t *event_data)
{
int result = BLUETOOTH_ERROR_NONE;
-
struct gatt_server_info_t *conn_info = NULL;
+#ifndef __INTEGRATE_GATT_INFO__
+ struct gatt_client_info_t *client_info = NULL;
+#endif
struct gatt_out_conn_info_t *out_conn_info = NULL;
-
GVariant *param = NULL;
char *address = g_malloc0(BT_ADDRESS_STRING_SIZE);
} else
BT_INFO("Can not find conn info, already removed!");
+#ifndef __INTEGRATE_GATT_INFO__
+ /* Remove client info */
+ client_info = _bt_find_remote_gatt_client_info(address);
+ if (client_info) {
+ BT_DBG("Remove GATT client info from list");
+ gatt_client_info_list = g_slist_remove(gatt_client_info_list, client_info);
+ g_free(client_info->addr);
+ g_free(client_info);
+ }
+#endif
+
__bt_remove_mtu_gatt_device(address);
/* If outgoing connection Info is present, then remove it */