diff --git a/src/platform/EFR32/wifi/ethernetif.cpp b/src/platform/EFR32/wifi/ethernetif.cpp index 52e72b26368c02..8f811d5abea150 100644 --- a/src/platform/EFR32/wifi/ethernetif.cpp +++ b/src/platform/EFR32/wifi/ethernetif.cpp @@ -121,9 +121,9 @@ static void low_level_input(struct netif * netif, uint8_t * b, uint16_t len) { return; } - if (len < 60) + if (len < LWIP_FRAME_ALIGNMENT) { /* 60 : LWIP frame alignment */ - len = 60; + len = LWIP_FRAME_ALIGNMENT; } /* We allocate a pbuf chain of pbufs from the Lwip buffer pool * and copy the data to the pbuf chain