Removed check since the interface is not fully up yet so we can't block DHCP/ARP

pull/3975/head
andreas.larsson 2016-09-27 11:20:26 +02:00 committed by Martin Kojtal
parent f122695fd3
commit 8af75511ca
1 changed files with 1 additions and 6 deletions

View File

@ -35,12 +35,7 @@ static err_t emac_lwip_low_level_output(struct netif *netif, struct pbuf *p)
static err_t emac_lwip_output(struct netif *netif, struct pbuf *q, ip_addr_t *ipaddr) static err_t emac_lwip_output(struct netif *netif, struct pbuf *q, ip_addr_t *ipaddr)
{ {
/* Only send packets if the link is up */ return etharp_output(netif, q, ipaddr);
if (netif->flags & NETIF_FLAG_UP) {
return etharp_output(netif, q, ipaddr);
}
return ERR_CONN;
} }
static void emac_lwip_input(void *data, emac_stack_t *buf) static void emac_lwip_input(void *data, emac_stack_t *buf)