Skip to content

Commit bb04bc1

Browse files
committed
gnrc/netif: small doc improvement
1 parent 861a05e commit bb04bc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sys/net/gnrc/netif/gnrc_netif.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,8 +1950,9 @@ static void _send(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt, bool push_back)
19501950
int res = netif->ops->send(netif, pkt);
19511951

19521952
/* For legacy netdevs (no confirm_send) TX is blocking, thus it is always
1953-
* completed. For new netdevs (with confirm_send), TX is async. It is only
1954-
* done if TX failed right away (res < 0).
1953+
* completed. For new netdevs (with confirm_send), TX is usually async (res == 0).
1954+
* It is only done if TX failed right away (res < 0) or if the driver signaled
1955+
* that the transmission already completed (res > 0).
19551956
*/
19561957
if (gnrc_netif_netdev_legacy_api(netif) || (res != 0)) {
19571958
_tx_done(netif, pkt, tx_sync, res, push_back);

0 commit comments

Comments
 (0)