From 943231119f3caaaca7db4c588e4f3e9a6cec426a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20Br=C3=BCns?= Date: Sun, 30 Aug 2015 17:46:43 +0200 Subject: [PATCH] net/arp: Do not run net_start_again() on timeout MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit net_start_again() will be called from net_loop() if state is NETLOOP_FAIL. Signed-off-by: Stefan Brüns Acked-by: Joe Hershberger --- net/arp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/arp.c b/net/arp.c index b8655700a8..b1f12bf10d 100644 --- a/net/arp.c +++ b/net/arp.c @@ -112,7 +112,7 @@ void arp_timeout_check(void) if (arp_wait_try >= ARP_TIMEOUT_COUNT) { puts("\nARP Retry count exceeded; starting again\n"); arp_wait_try = 0; - net_start_again(); + net_set_state(NETLOOP_FAIL); } else { arp_wait_timer_start = t; arp_request(); -- 2.39.5