]> git.sur5r.net Git - u-boot/blobdiff - net/bootp.c
cm-t35: fix legacy board revision representation
[u-boot] / net / bootp.c
index 7e24b661de40d231274adfc611c2166614f79390..0f0867b1c492dd65bbae9575c55636179f85aae5 100644 (file)
@@ -326,8 +326,13 @@ static void
 BootpTimeout(void)
 {
        if (BootpTry >= TIMEOUT_COUNT) {
+#ifdef CONFIG_BOOTP_MAY_FAIL
+               puts("\nRetry count exceeded\n");
+               NetSetState(NETLOOP_FAIL);
+#else
                puts("\nRetry count exceeded; starting again\n");
                NetStartAgain();
+#endif
        } else {
                NetSetTimeout(TIMEOUT, BootpTimeout);
                BootpRequest();