diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-22 14:42:52 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-22 14:42:52 +0000 |
commit | 7d4b2f6253d8ac898def6839b2ccc2ae61e24135 (patch) | |
tree | 36587b181e76fc8790f7472f64316c9bb620a31e /nuttx/net/sendto.c | |
parent | 2ad451b8005afc667718569077c816195f8bd9ec (diff) | |
download | px4-nuttx-7d4b2f6253d8ac898def6839b2ccc2ae61e24135.tar.gz px4-nuttx-7d4b2f6253d8ac898def6839b2ccc2ae61e24135.tar.bz2 px4-nuttx-7d4b2f6253d8ac898def6839b2ccc2ae61e24135.zip |
Add TX data notification
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@397 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/sendto.c')
-rw-r--r-- | nuttx/net/sendto.c | 4 |
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 |