Merge pull request #13752 from gschorcht/sys/shell/fix_gnrc_netif
sys/shell: fix ifconfig command for NETOPT_LINK
This commit is contained in:
commit
889e8b7cf8
@ -494,9 +494,10 @@ static void _netif_list(netif_t *iface)
|
|||||||
printf(" CR: %s ", _netopt_coding_rate_str[u8]);
|
printf(" CR: %s ", _netopt_coding_rate_str[u8]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
res = netif_get_opt(iface, NETOPT_LINK, 0, &u8, sizeof(u8));
|
netopt_enable_t link;
|
||||||
|
res = netif_get_opt(iface, NETOPT_LINK, 0, &link, sizeof(netopt_enable_t));
|
||||||
if (res >= 0) {
|
if (res >= 0) {
|
||||||
printf(" Link: %s ", (netopt_enable_t)u8 ? "up" : "down" );
|
printf(" Link: %s ", (link == NETOPT_ENABLE) ? "up" : "down" );
|
||||||
}
|
}
|
||||||
line_thresh = _newline(0U, line_thresh);
|
line_thresh = _newline(0U, line_thresh);
|
||||||
res = netif_get_opt(iface, NETOPT_ADDRESS_LONG, 0, hwaddr, sizeof(hwaddr));
|
res = netif_get_opt(iface, NETOPT_ADDRESS_LONG, 0, hwaddr, sizeof(hwaddr));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user