- bt_object_put_ref(comp);
- return status;
-}
-
-enum bt_port_status bt_port_disconnect(struct bt_port *port)
-{
- enum bt_port_status status = BT_PORT_STATUS_OK;
-
- if (!port) {
- BT_LOGW_STR("Invalid parameter: port is NULL.");
- status = BT_PORT_STATUS_INVALID;
- goto end;
- }
-
- if (port->connection) {
- bt_connection_end(port->connection, true);
- BT_LOGV("Disconnected port: "
- "port-addr=%p, port-name=\"%s\"",
- port, bt_port_get_name(port));
- }
-
-end:
- return status;