if an interface is brought down by the proto handler and autostart is still active...
authorFelix Fietkau <nbd@openwrt.org>
Wed, 12 Oct 2011 14:19:52 +0000 (16:19 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 12 Oct 2011 14:19:52 +0000 (16:19 +0200)
interface.c

index 37b20cc..514b4d5 100644 (file)
@@ -250,6 +250,8 @@ interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve
 
                mark_interface_down(iface);
                interface_handle_config_change(iface);
 
                mark_interface_down(iface);
                interface_handle_config_change(iface);
+               if (iface->autostart)
+                       __interface_set_up(iface);
                break;
        case IFPEV_LINK_LOST:
                if (iface->state != IFS_UP)
                break;
        case IFPEV_LINK_LOST:
                if (iface->state != IFS_UP)