summaryrefslogtreecommitdiff
path: root/nuttx/net/socket/net_sendfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/socket/net_sendfile.c')
-rw-r--r--nuttx/net/socket/net_sendfile.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/net/socket/net_sendfile.c b/nuttx/net/socket/net_sendfile.c
index 807bdcc7d..4e99f596e 100644
--- a/nuttx/net/socket/net_sendfile.c
+++ b/nuttx/net/socket/net_sendfile.c
@@ -562,10 +562,13 @@ ssize_t net_sendfile(int outfd, struct file *infile, off_t *offset,
state.snd_datacb->priv = (void*)&state;
state.snd_datacb->event = sendfile_interrupt;
- /* Notify the device driver of the availaibilty of TX data */
+ /* Notify the device driver of the availability of TX data */
+#ifdef CONFIG_NET_MULTILINK
+ netdev_txnotify(conn->lipaddr, conn->ripaddr);
+#else
netdev_txnotify(conn->ripaddr);
-
+#endif
net_lockedwait(&state.snd_sem);
}
while (state.snd_sent >= 0 && state.snd_acked < state.snd_flen);