static int __bt_unregister_gatt_server_instance(int server_instance);
static void __bt_cleanup_remote_services(struct gatt_server_info_t *conn_info);
+#ifdef TIZEN_BLUEDROID_PORTING
+static void __bt_remove_all_prep_write_req(int conn_id);
+#endif
/*mtu device list*/
struct gatt_mtu_info_t {
BT_INFO("Local GATT Server DisConnected: Remote Client addr[%s] Server Instance [%d] Connection ID [%d]",
address + 12, event->server_inst, event->conn_id);
+#ifdef TIZEN_BLUEDROID_PORTING
+ __bt_remove_all_prep_write_req(event->conn_id);
+#endif
+
/* Remove Connection info */
client_info = _bt_find_remote_gatt_client_info(address);
if (client_info) {
bt_gatt_prep_write_data_t *prep_data = NULL;
bt_gatt_prep_write_data_t *exec_data = NULL;
int conn_id = -1;
+ int ret = OAL_STATUS_SUCCESS;
/* Search for matching Request in prepare write List */
prep_data = __bt_find_prep_write_data_from_request_id(param->request_id);