From: Hannes Petermaier Date: Tue, 25 Aug 2015 10:17:59 +0000 (+0200) Subject: net: bootp fix vci string on SPL-Boot X-Git-Tag: v2016.01-rc1~154^2~27 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=214dc1da4aa90c40e653c4daa097290fd61b3f10;p=oweals%2Fu-boot.git net: bootp fix vci string on SPL-Boot If CONFIG_CMD_DHCP is enabled, the vci (vendor-class-identifier) string isn't inserted into the bootp-packet during SPL stage because the CONFIG_BOOTP_VCI_STRING instead CONFIG_SPL_NET_VCI_STRING We fix this with testing for CONFIG_SPL_BUILD and testing for existing CONFIG_SPL_NET_VCI_STRING. Signed-off-by: Hannes Schmelzer Acked-by: Joe Hershberger Reviewed-by: Tom Rini --- diff --git a/net/bootp.c b/net/bootp.c index b2f8ad4ded..defad73d1a 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -498,7 +498,9 @@ static int dhcp_extended(u8 *e, int message_type, struct in_addr server_ip, } #endif -#ifdef CONFIG_BOOTP_VCI_STRING +#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_NET_VCI_STRING) + put_vci(e, CONFIG_SPL_NET_VCI_STRING); +#elif defined(CONFIG_BOOTP_VCI_STRING) put_vci(e, CONFIG_BOOTP_VCI_STRING); #endif