summaryrefslogtreecommitdiff
path: root/net/lwip/dhcp.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-04-23 08:53:23 -0600
committerTom Rini <trini@konsulko.com>2025-04-23 08:53:23 -0600
commit5d4a6995bb4311203a024200a402508fdf5d7dfb (patch)
tree6410ca5d2528856f84e425630d9109ea2961070b /net/lwip/dhcp.c
parent4446bc331c65d3efb8a9321d6368c61edb56479b (diff)
parent49ae68536f234c423c78e89913c64ae9b87ed0e8 (diff)
Merge tag 'net-20250423' of https://source.denx.de/u-boot/custodians/u-boot-net
Pull request net-20250423 net: - Make initr_net() invocation command line agnostic net-legacy: - net: dhcpv6: remove excluded middle expression - net: dhcp6: Send DHCPv6 using multicast MAC net-lwip: - lwIP sandbox tests misc: - cmd: Remove CMD_NET protection
Diffstat (limited to 'net/lwip/dhcp.c')
-rw-r--r--net/lwip/dhcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/lwip/dhcp.c b/net/lwip/dhcp.c
index 3b7e4700c6e..92bd7067a7f 100644
--- a/net/lwip/dhcp.c
+++ b/net/lwip/dhcp.c
@@ -115,7 +115,8 @@ int do_dhcp(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
int ret;
struct udevice *dev;
- net_lwip_set_current();
+ if (net_lwip_eth_start() < 0)
+ return CMD_RET_FAILURE;
dev = eth_get_dev();
if (!dev) {