[OpenWrt-Devel] [PATCH] netifd: Handle link down event in interface setup state as well

Hans Dedecker dedeckeh at gmail.com
Mon Dec 22 09:46:16 EST 2014


Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
 interface.c | 1 +
 1 file changed, 1 insertion(+)

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);
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list