diff --git a/bsp/at91sam9260/macb.c b/bsp/at91sam9260/macb.c index ae18e3ffe1..0d9d5c8c32 100755 --- a/bsp/at91sam9260/macb.c +++ b/bsp/at91sam9260/macb.c @@ -324,15 +324,12 @@ void macb_update_link(struct rt_macb_eth *macb) rt_kprintf("%s: link up (%dMbps/%s-duplex)\n", dev->parent.name, macb->speed, DUPLEX_FULL == macb->duplex ? "Full":"Half"); - //macb->parent.link_status = 1; - //netif_set_link_up(macb->parent.netif); + eth_device_linkchange(&macb->parent, RT_TRUE); } else { rt_kprintf("%s: link down\n", dev->parent.name); - //macb->parent.link_status = 0; - //netif_set_link_down(macb->parent.netif); + eth_device_linkchange(&macb->parent, RT_FALSE); } - //eth_device_linkchange(&macb->parent, RT_TRUE); } }