summaryrefslogtreecommitdiffhomepage
path: root/proto-shell.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-04-12 15:54:13 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-04-12 15:54:13 +0200
commitf4508267c9b5524c1ba9dffde16b1ab1dcd1f857 (patch)
treef1edfdb5e2e7f7409f09d3d79b6018930380401f /proto-shell.c
parentb32cffd4f0a2b904a1e3c38e5141100970f89a65 (diff)
proto-shell: set sm to S_IDLE once the interface is up
Diffstat (limited to 'proto-shell.c')
-rw-r--r--proto-shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto-shell.c b/proto-shell.c
index aba7298..4cff091 100644
--- a/proto-shell.c
+++ b/proto-shell.c
@@ -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);