From 1629a6aa411fbc22847b8aa8ad32f77420b2d3ff Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 13 Nov 2024 18:55:50 +0100 Subject: [PATCH] drivers/at86rf215: properly implement netdev_new --- drivers/at86rf215/at86rf215_netdev.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/at86rf215/at86rf215_netdev.c b/drivers/at86rf215/at86rf215_netdev.c index 72d2d5127b..dddbb8280d 100644 --- a/drivers/at86rf215/at86rf215_netdev.c +++ b/drivers/at86rf215/at86rf215_netdev.c @@ -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)