summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-11-20 23:06:13 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-12-14 14:30:16 +0100
commit528298b702a0ad238dd01b3497f7c0bb671bf7c9 (patch)
treede45aac980aca35e3761921449728afadd033f77 /arch/arm/mach-omap
parent6b4a38d00255149c63277100ed1a3f5f95ab2e75 (diff)
downloadbarebox-528298b702a0ad238dd01b3497f7c0bb671bf7c9.tar.gz
barebox-528298b702a0ad238dd01b3497f7c0bb671bf7c9.tar.xz
net: dhcp: rework
The DHCP code is a mess. It is not clear which options are sent to the server and which options are returned from the server. Also environment variables are read from and written to all over the place. This patch cleans this up. There now is struct dhcp_req_param which is used for options sent to the server and struct dhcp_result which contains the values sent from the server. The values from the server are written to the barebox variables in a single place. Also it's now possible to call the dhcp code without modifying barebox variables at all, storing the result only in the dhcp result struct. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap')
-rw-r--r--arch/arm/mach-omap/xload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap/xload.c b/arch/arm/mach-omap/xload.c
index e83784ba4d..d8b1c9ee1c 100644
--- a/arch/arm/mach-omap/xload.c
+++ b/arch/arm/mach-omap/xload.c
@@ -248,7 +248,7 @@ static void *am33xx_net_boot(void)
return NULL;
}
- err = dhcp(edev, 20, &dhcp_param);
+ err = dhcp(edev, &dhcp_param);
if (err) {
printf("dhcp failed\n");
return NULL;