diff options
| author | armink <[email protected]> | 2017-08-01 11:35:42 +0800 |
|---|---|---|
| committer | armink <[email protected]> | 2017-08-01 11:35:42 +0800 |
| commit | 0742338fa7febc87d8a728ec68e76b8e50af1710 (patch) | |
| tree | 30113105b0dc570ccbbfc83333812f04ce34b7a0 /components | |
| parent | 1b7d48134ae5b739396fd98efc1272178c7627a1 (diff) | |
[LWIP] Fix lwip 2.0.2 link status problem when the eth isn't linkup at the first time.
Diffstat (limited to 'components')
| -rw-r--r-- | components/net/lwip-2.0.2/src/arch/sys_arch.c | 2 | ||||
| -rw-r--r-- | components/net/lwip-2.0.2/src/netif/ethernetif.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/net/lwip-2.0.2/src/arch/sys_arch.c b/components/net/lwip-2.0.2/src/arch/sys_arch.c index 4cddf86eb6..cd76a73abe 100644 --- a/components/net/lwip-2.0.2/src/arch/sys_arch.c +++ b/components/net/lwip-2.0.2/src/arch/sys_arch.c @@ -114,7 +114,7 @@ static void tcpip_init_done_callback(void *arg) netif_set_up(ethif->netif); #endif - if (!(ethif->flags & ETHIF_LINK_PHYUP)) + if (ethif->flags & ETHIF_LINK_PHYUP) { netif_set_link_up(ethif->netif); } diff --git a/components/net/lwip-2.0.2/src/netif/ethernetif.c b/components/net/lwip-2.0.2/src/netif/ethernetif.c index 4dca17b3e1..c648dcf1a9 100644 --- a/components/net/lwip-2.0.2/src/netif/ethernetif.c +++ b/components/net/lwip-2.0.2/src/netif/ethernetif.c @@ -180,7 +180,7 @@ static err_t eth_netif_device_init(struct netif *netif) netif_set_up(ethif->netif); #endif - if (!(ethif->flags & ETHIF_LINK_PHYUP)) + if (ethif->flags & ETHIF_LINK_PHYUP) { /* set link_up for this netif */ netif_set_link_up(ethif->netif); |
