mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
Merge pull request #7663 from aabadie/ifconfig_standby
sys/shell/netif: add 'standby' state setter
This commit is contained in:
commit
d8a97a127b
@ -691,8 +691,12 @@ static int _netif_set_state(kernel_pid_t dev, char *state_str)
|
||||
(strcmp("RESET", state_str) == 0)) {
|
||||
state = NETOPT_STATE_RESET;
|
||||
}
|
||||
else if ((strcmp("standby", state_str) == 0) ||
|
||||
(strcmp("STANDBY", state_str) == 0)) {
|
||||
state = NETOPT_STATE_STANDBY;
|
||||
}
|
||||
else {
|
||||
puts("usage: ifconfig <if_id> set state [off|sleep|idle|reset]");
|
||||
puts("usage: ifconfig <if_id> set state [off|sleep|idle|reset|standby]");
|
||||
return 1;
|
||||
}
|
||||
if (gnrc_netapi_set(dev, NETOPT_STATE, 0,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user