提交 7aabad28 编写于 作者: P Peter Korsgaard 提交者: Wolfgang Denk

net/bootp.c: fix tftp load if autoload environment var isn't set

Commit 09349866 (Put common autoload code into auto_load() function)
broke handling of autoload environment variable not being set.
The bootp/dhcp code will just keep on requesting IP address forever
and never start TFTP download.

Fix it by moving TftpStart() outside the conditional like it was before.
Signed-off-by: NPeter Korsgaard <jacmet@sunsite.dk>
Tested-by: NFabio Estevam <fabio.estevam@freescale.com>
Acked-by: NSimon Glass <sjg@chromium.org>
上级 226502e0
......@@ -164,8 +164,8 @@ static void auto_load(void)
return;
}
#endif
TftpStart();
}
TftpStart();
}
#if !defined(CONFIG_CMD_DHCP)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册