Skip to content
Snippets Groups Projects
Commit d8a97a12 authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #7663 from aabadie/ifconfig_standby

sys/shell/netif: add 'standby' state setter
parents c8a02563 9ebd407a
Branches
No related tags found
No related merge requests found
...@@ -691,8 +691,12 @@ static int _netif_set_state(kernel_pid_t dev, char *state_str) ...@@ -691,8 +691,12 @@ static int _netif_set_state(kernel_pid_t dev, char *state_str)
(strcmp("RESET", state_str) == 0)) { (strcmp("RESET", state_str) == 0)) {
state = NETOPT_STATE_RESET; state = NETOPT_STATE_RESET;
} }
else if ((strcmp("standby", state_str) == 0) ||
(strcmp("STANDBY", state_str) == 0)) {
state = NETOPT_STATE_STANDBY;
}
else { 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; return 1;
} }
if (gnrc_netapi_set(dev, NETOPT_STATE, 0, if (gnrc_netapi_set(dev, NETOPT_STATE, 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment