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:
Brett Witherspoon 2019-04-08 13:44:03 -05:00 committed by Jukka Rissanen
parent 39131dc3ce
commit 88a1fd7dd9

View file

@ -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 */