diff --git a/net/rpmsg/rpmsg_sockif.c b/net/rpmsg/rpmsg_sockif.c index 67070b86f1..624457ed2e 100644 --- a/net/rpmsg/rpmsg_sockif.c +++ b/net/rpmsg/rpmsg_sockif.c @@ -1010,7 +1010,8 @@ static ssize_t rpmsg_socket_send_continuous(FAR struct socket *psock, rpmsg_socket_unlock(&conn->sendlock); - ret = rpmsg_send_nocopy(&conn->ept, msg, block + sizeof(*msg)); + ret = rpmsg_sendto_nocopy(&conn->ept, msg, block + sizeof(*msg), + conn->ept.dest_addr); if (ret < 0) { break; @@ -1111,7 +1112,7 @@ static ssize_t rpmsg_socket_send_single(FAR struct socket *psock, rpmsg_socket_unlock(&conn->sendlock); - ret = rpmsg_send_nocopy(&conn->ept, msg, total); + ret = rpmsg_sendto_nocopy(&conn->ept, msg, total, conn->ept.dest_addr); return ret > 0 ? len : ret; }