Commit 2aa39121 authored by Adam Wujek's avatar Adam Wujek 💬 Committed by Grzegorz Daniluk

wrc_main: set prev_state to 0 at compilation

By this when the link is down at startup, link_status is set to LINK_DOWN
in wrc_check_link. It does not go through state LINK_WENT_DOWN.

Due to this bug, despite of link was down one packet was sent by bootp.
Signed-off-by: Adam Wujek's avatarAdam Wujek <>
parent 0fa23ab7
......@@ -109,7 +109,7 @@ int link_status;
static int wrc_check_link(void)
static int prev_state = -1;
static int prev_state = 0;
int state = ep_link_up(NULL);
int rv = 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment