diff --git a/net/devif/devif_cansend.c b/net/devif/devif_cansend.c index 60325a5cdf..b82956c851 100644 --- a/net/devif/devif_cansend.c +++ b/net/devif/devif_cansend.c @@ -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 */