From: Felix Fietkau Date: Sun, 31 Aug 2014 13:06:42 +0000 (+0200) Subject: interface: call proto teardown before marking the interface as down X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=b2dcb02570939d98b92c7c55db1c328693a5d52a interface: call proto teardown before marking the interface as down Signed-off-by: Felix Fietkau --- diff --git a/interface.c b/interface.c index bebc30b..35f20b0 100644 --- a/interface.c +++ b/interface.c @@ -272,8 +272,8 @@ interface_check_state(struct interface *iface) switch (iface->state) { case IFS_UP: if (!iface->enabled || !link_state) { - mark_interface_down(iface); interface_proto_event(iface->proto, PROTO_CMD_TEARDOWN, false); + mark_interface_down(iface); } break; case IFS_DOWN: