diff options
Diffstat (limited to 'nuttx/arch/arm/src/sam34/sam_emac.c')
-rw-r--r-- | nuttx/arch/arm/src/sam34/sam_emac.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/sam34/sam_emac.c b/nuttx/arch/arm/src/sam34/sam_emac.c index 32d276007..b599f5ba2 100644 --- a/nuttx/arch/arm/src/sam34/sam_emac.c +++ b/nuttx/arch/arm/src/sam34/sam_emac.c @@ -1163,7 +1163,9 @@ static void sam_receive(struct sam_emac_s *priv) sam_transmit(priv); } } - else if (BUF->type == htons(ETHTYPE_ARP)) + else +#ifdef CONFIG_NET_ARP + if (BUF->type == htons(ETHTYPE_ARP)) { nllvdbg("ARP frame\n"); @@ -1181,6 +1183,7 @@ static void sam_receive(struct sam_emac_s *priv) } } else +#endif { nlldbg("DROPPED: Unknown type: %04x\n", BUF->type); } |