proto-shell: set sm to S_IDLE once the interface is up
authorFelix Fietkau <nbd@openwrt.org>
Thu, 12 Apr 2012 13:54:13 +0000 (15:54 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 12 Apr 2012 13:54:13 +0000 (15:54 +0200)
proto-shell.c

index aba7298de23c5dd33b95a223125980223c745b2b..4cff09134f3a610077cd1e3cc88774f039b99b8c 100644 (file)
@@ -338,6 +338,7 @@ proto_shell_update_link(struct proto_shell_state *state, struct blob_attr *data,
        interface_update_complete(state->proto.iface);
 
        state->proto.proto_event(&state->proto, IFPEV_UP);
+       state->sm = S_IDLE;
 
        if ((cur = tb[NOTIFY_DATA]))
                proto_shell_parse_data(state->proto.iface, cur);