do not override iface->autostart on config reload
authorFelix Fietkau <nbd@openwrt.org>
Wed, 5 Oct 2011 16:51:32 +0000 (18:51 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 5 Oct 2011 16:51:32 +0000 (18:51 +0200)
interface.c

index fa4b225..506a478 100644 (file)
@@ -392,7 +392,7 @@ set_config_state(struct interface *iface, enum interface_config_state s)
        if (iface->state == IFS_DOWN)
                interface_handle_config_change(iface);
        else
        if (iface->state == IFS_DOWN)
                interface_handle_config_change(iface);
        else
-               interface_set_down(iface);
+               __interface_set_down(iface, false);
 }
 
 static void
 }
 
 static void