mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
[LWIP] Fix lwip 2.0.2 link status problem when the eth isn't linkup at the first time.
This commit is contained in:
1 parent
1b7d48134a
commit
0742338fa7
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user