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 37b20cc9c03b13f4eb0a85bc1be494f04dc53be1..514b4d5e10035b3aa2e3e000724df73d2e23f41a 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);
+               if (iface->autostart)
+                       __interface_set_up(iface);
                break;
        case IFPEV_LINK_LOST:
                if (iface->state != IFS_UP)