1 // SPDX-License-Identifier: GPL-2.0+
4 * Lothar Felte, lothar.felten@gmail.com
14 #if defined(CONFIG_CMD_WOL)
15 void wol_set_timeout(ulong
);
17 int do_wol(struct cmd_tbl
*cmdtp
, int flag
, int argc
, char *const argv
[])
19 /* Validate arguments */
22 wol_set_timeout(simple_strtol(argv
[1], NULL
, 10) * 1000);
23 if (net_loop(WOL
) < 0)
24 return CMD_RET_FAILURE
;
25 return CMD_RET_SUCCESS
;
30 "wait for an incoming wake-on-lan packet",