Skip to content

Commit 88a1fd7

Browse files
bwitherspoonjukkar
authored andcommitted
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 <[email protected]>
1 parent 39131dc commit 88a1fd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/net/promiscuous.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static inline int net_promisc_mode_on(struct net_if *iface)
6060
{
6161
ARG_UNUSED(iface);
6262

63-
return -ENOSUP;
63+
return -ENOTSUP;
6464
}
6565
#endif /* CONFIG_NET_PROMISCUOUS_MODE */
6666

@@ -78,7 +78,7 @@ static inline int net_promisc_mode_off(struct net_if *iface)
7878
{
7979
ARG_UNUSED(iface);
8080

81-
return -ENOSUP;
81+
return -ENOTSUP;
8282
}
8383
#endif /* CONFIG_NET_PROMISCUOUS_MODE */
8484

0 commit comments

Comments
 (0)