From: Hans Dedecker Date: Mon, 22 Dec 2014 14:46:16 +0000 (+0100) Subject: netifd: Handle link down event in interface setup state as well X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=02713a50084b26a927d5d1f95455829d320aa4e1;p=project%2Fnetifd.git netifd: Handle link down event in interface setup state as well Signed-off-by: Hans Dedecker --- diff --git a/interface.c b/interface.c index 4b5405e..83d7f94 100644 --- a/interface.c +++ b/interface.c @@ -271,6 +271,7 @@ interface_check_state(struct interface *iface) switch (iface->state) { case IFS_UP: + case IFS_SETUP: if (!iface->enabled || !link_state) { interface_proto_event(iface->proto, PROTO_CMD_TEARDOWN, false); mark_interface_down(iface);