Skip to content

Commit 0343890

Browse files
committed
chg: dev: run set_env and set netloop success on detect
Signed-off-by: Stephen L Arnold <[email protected]>
1 parent 4bd2373 commit 0343890

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: net/net.c

+2
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,8 @@ void net_process_received_packet(uchar *in_packet, int len)
11491149
#if defined(CONFIG_CMD_SWU)
11501150
} else if (eth_proto == PROT_SWU) { /* swupdate packet */
11511151
printf("Got SWU trigger packet %x\n", eth_proto);
1152+
env_set("do_rescue", "1");
1153+
net_set_state(NETLOOP_SUCCESS);
11521154
return;
11531155
#endif
11541156
} else if (eth_proto != PROT_VLAN) { /* normal packet */

0 commit comments

Comments
 (0)