summaryrefslogtreecommitdiff
path: root/nuttx/net/sendto.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/sendto.c')
-rw-r--r--nuttx/net/sendto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/net/sendto.c b/nuttx/net/sendto.c
index d18ea8e3d..bbcf65b80 100644
--- a/nuttx/net/sendto.c
+++ b/nuttx/net/sendto.c
@@ -283,6 +283,10 @@ ssize_t sendto(int sockfd, const void *buf, size_t len, int flags,
uip_udpenable(psock->s_conn);
+ /* Notify the device driver of the availaibilty of TX data */
+
+ netdev_txnotify(&udp_conn->ripaddr);
+
/* Wait for either the receive to complete or for an error/timeout to occur.
* NOTES: (1) sem_wait will also terminate if a signal is received, (2)
* interrupts are disabled! They will be re-enabled while the task sleeps