Skip to content

Commit

Permalink
drivers/at86rf215: properly implement netdev_new
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Nov 14, 2024
1 parent 8eef1c1 commit 1629a6a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/at86rf215/at86rf215_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,11 @@ static int _send(netdev_t *netdev, const iolist_t *iolist)
at86rf215_tx_exec(dev);
}

/* return the number of bytes that were actually loaded into the frame
* buffer/send out */
return (int)len;
/* store successfully sent number of bytes */
dev->tx_frame_len = len;

/* netdev_new just returns 0 on success */
return 0;
}

static int _confirm_send(netdev_t *netdev, void *info)
Expand Down

0 comments on commit 1629a6a

Please sign in to comment.