You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stm32/eth: Fix DHCP startup timing and link-dependent activation.
Fix DHCP not working when ipconfig(dhcp4=True) is called after
active(True). The issue was caused by starting DHCP before link
status was determined and not properly handling DHCP startup when
the link comes up later.
Changes:
- Move link status poll before LWIP interface setup in eth_start()
- Only start DHCP if link is already up when interface starts
- Start DHCP automatically when link comes up if no static IP set
- Ensure DHCP works correctly with cable connect/disconnect cycles
This restores the expected behavior where users can call:
eth = network.LAN()
eth.active(True)
eth.ipconfig(dhcp4=True)
Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
0 commit comments