remove tcpip_callback(netif_set_link_up, netif)

=> the initd will set the link up
This commit is contained in:
Stefan Lankes 2011-09-07 10:11:16 +02:00
parent 8aadb9a426
commit 308f9b136f
2 changed files with 1 additions and 5 deletions

View file

@ -855,8 +855,6 @@ err_t rckemacif_init(struct netif* netif)
// flush write combining buffers
*(int *)RCCE_fool_write_combine_buffer = 1;
tcpip_callback(netif_set_link_up, netif);
return ERR_OK;
}
#endif

View file

@ -441,14 +441,12 @@ err_t rtl8139if_init(struct netif* netif)
/* maximum transfer unit */
netif->mtu = 1500;
/* broadcast capability */
netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP;
netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_IGMP;
/* hardware address length */
netif->hwaddr_len = 6;
rtl8139if->ethaddr = (struct eth_addr *)netif->hwaddr;
tcpip_callback(netif_set_link_up, netif);
return ERR_OK;
}
#endif