Skip to content
Permalink
Browse files

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>
  • Loading branch information...
bwitherspoon authored and jukkar committed Apr 8, 2019
1 parent 39131dc commit 88a1fd7dd96b7c21f1bd0109c7c9df0249fc9447
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/net/promiscuous.h
@@ -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 */

0 comments on commit 88a1fd7

Please sign in to comment.
You can’t perform that action at this time.