net: fix errno returned without promiscuous mode support
If promiscuous mode support is disabled in Kconfig and promiscuous.h is included the build will fail. The returned errno should be ENOTSUP. Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
This commit is contained in:
parent
39131dc3ce
commit
88a1fd7dd9
|
@ -60,7 +60,7 @@ static inline int net_promisc_mode_on(struct net_if *iface)
|
|||
{
|
||||
ARG_UNUSED(iface);
|
||||
|
||||
return -ENOSUP;
|
||||
return -ENOTSUP;
|
||||
}
|
||||
#endif /* CONFIG_NET_PROMISCUOUS_MODE */
|
||||
|
||||
|
@ -78,7 +78,7 @@ static inline int net_promisc_mode_off(struct net_if *iface)
|
|||
{
|
||||
ARG_UNUSED(iface);
|
||||
|
||||
return -ENOSUP;
|
||||
return -ENOTSUP;
|
||||
}
|
||||
#endif /* CONFIG_NET_PROMISCUOUS_MODE */
|
||||
|
||||
|
|
Loading…
Reference in a new issue