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 18:44:03 +00:00
committed by Kumar Gala
parent cebe11544e
commit 247330d62a

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