da8xx/hawkboard: Add support for ohci host controller
[oweals/u-boot.git] / net / bootp.c
index 0f0867b1c492dd65bbae9575c55636179f85aae5..c9b8349b3650b873351dd44b86eb4386a495e285 100644 (file)
 #include <command.h>
 #include <net.h>
 #include "bootp.h"
-#include "net_rand.h"
 #include "tftp.h"
 #include "nfs.h"
 #ifdef CONFIG_STATUS_LED
 #include <status_led.h>
 #endif
+#ifdef CONFIG_BOOTP_RANDOM_DELAY
+#include "net_rand.h"
+#endif
 
 #define BOOTP_VENDOR_MAGIC     0x63825363      /* RFC1048 Magic Cookie */
 
@@ -328,7 +330,7 @@ BootpTimeout(void)
        if (BootpTry >= TIMEOUT_COUNT) {
 #ifdef CONFIG_BOOTP_MAY_FAIL
                puts("\nRetry count exceeded\n");
-               NetSetState(NETLOOP_FAIL);
+               net_set_state(NETLOOP_FAIL);
 #else
                puts("\nRetry count exceeded; starting again\n");
                NetStartAgain();