drivers/rpmsg: Use tx buffer size as payload length

Directly use tx length received from hub as the tx payload length.

Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
yintao 2024-06-18 19:40:33 +08:00 committed by Xiang Xiao
parent 7c933874e8
commit 7bc7369102
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ rpmsg_router_edge_get_tx_payload_buffer(FAR struct rpmsg_device *rdev,
}
buf = hubdev->ops.get_tx_payload_buffer(hubdev, len, wait);
*len = edge->tx_len - (rpmsg_get_tx_buffer_size(rdev) - *len);
*len = edge->tx_len;
return buf;
}