net: Expose a way to know if the network interface is suspended or not
And use it in the shell to display such information then. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
db6f896c00
commit
4322c66e4b
3 changed files with 19 additions and 1 deletions
|
@ -3650,6 +3650,11 @@ int net_if_resume(struct net_if *iface)
|
|||
return 0;
|
||||
}
|
||||
|
||||
bool net_if_is_suspended(struct net_if *iface)
|
||||
{
|
||||
return net_if_flag_is_set(iface, NET_IF_SUSPENDED);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NET_POWER_MANAGEMENT */
|
||||
|
||||
#if defined(CONFIG_NET_PKT_TIMESTAMP_THREAD)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue