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:
committed by
Kumar Gala
parent
cebe11544e
commit
247330d62a
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user