mirror of
https://github.com/apache/nuttx.git
synced 2026-08-28 04:40:41 +00:00
arch/arm/stm32h5/stm32_ethernet: Add missing netdev_carrier calls
This follows what was done in a7567677a8
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
5993ed41aa
commit
c9975a1e00
1 changed files with 2 additions and 0 deletions
|
|
@ -2464,6 +2464,7 @@ static int stm32_ifup(struct net_driver_s *dev)
|
|||
up_enable_irq(STM32_IRQ_ETH);
|
||||
|
||||
stm32_checksetup();
|
||||
netdev_carrier_on(dev);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
|
@ -2509,6 +2510,7 @@ static int stm32_ifdown(struct net_driver_s *dev)
|
|||
/* Mark the device "down" */
|
||||
|
||||
priv->ifup = false;
|
||||
netdev_carrier_off(dev);
|
||||
leave_critical_section(flags);
|
||||
return OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue