1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/at86rf215: properly implement netdev_new

This commit is contained in:
Benjamin Valentin 2024-11-13 18:55:50 +01:00
parent 8eef1c1170
commit 1629a6aa41

View File

@ -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)