net/devif/devif_cansend.c: fix assertion for max data len

This commit is contained in:
raiden00pl 2022-01-03 11:45:42 +01:00 committed by Gustavo Henrique Nihei
parent 43ddcd5277
commit 6185377eec

View File

@ -83,7 +83,7 @@
void devif_can_send(FAR struct net_driver_s *dev, FAR const void *buf,
unsigned int len)
{
DEBUGASSERT(dev && len > 0 && len < NETDEV_PKTSIZE(dev));
DEBUGASSERT(dev && len > 0 && len <= NETDEV_PKTSIZE(dev));
/* Copy the data into the device packet buffer */