Apply tizen 3.0 based product patchsets
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-rfcomm-server.c
index aa59276..d29f93c 100644 (file)
@@ -367,7 +367,7 @@ int new_server_connection(const char *path, int fd, bluetooth_device_address_t *
 
                close(fd);
                _bt_convert_addr_type_to_string(addr_str, addr->addr);
-               _bt_disconnect_profile(addr_str, info->uuid, NULL, NULL);
+               _bt_disconnect_ext_profile(addr_str, info->path);
 
                return -1;
        }
@@ -505,7 +505,7 @@ void _bt_rfcomm_server_disconnect_all(void)
 
                        _bt_convert_addr_type_to_string(addr,
                                                        conn_info->addr.addr);
-                       _bt_disconnect_profile(addr, info->uuid, NULL, NULL);
+                       _bt_disconnect_ext_profile(addr, info->path);
                }
 
                server = server->next;
@@ -729,7 +729,7 @@ BT_EXPORT_API int bluetooth_rfcomm_server_disconnect(int socket_fd)
        _bt_convert_addr_type_to_string(address, conn->addr.addr);
 
        BT_DBG("Address %s", address);
-       _bt_disconnect_profile(address, info->uuid, NULL, NULL);
+       _bt_disconnect_ext_profile(address, info->path);
 
        if (info->disconnect_idle_id == 0)
                info->disconnect_idle_id = g_idle_add(