diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/drivers/rtl8187x/rtl8187x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/drivers/rtl8187x/rtl8187x.c b/misc/drivers/rtl8187x/rtl8187x.c index f39e88f9f..597700bb9 100644 --- a/misc/drivers/rtl8187x/rtl8187x.c +++ b/misc/drivers/rtl8187x/rtl8187x.c @@ -2112,7 +2112,7 @@ static inline int rtl8187x_receive(FAR struct rtl8187x_state_s *priv, * and an Ethernet header */ - if (iolen < NET_LLH_LEN + SIZEOF_RXDESC) + if (iolen < NET_LL_HDRLEN + SIZEOF_RXDESC) { RTL8187X_STATS(priv, rxtoosmall); RTL8187X_STATS(priv, rxdropped); |