net: Add fallback macro for nef_if_mon functions

Add empty macro for net_if_mon functions if they are not otherwise
defined, like the other functions in the net_if.c file have.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2023-12-11 10:19:53 -06:00 committed by Fabio Baltieri
parent 7c87ff315e
commit e4cca5145b

View file

@ -1001,6 +1001,10 @@ void net_if_mcast_monitor(struct net_if *iface,
k_mutex_unlock(&lock);
}
#else
#define net_if_mcast_mon_register(...)
#define net_if_mcast_mon_unregister(...)
#define net_if_mcast_monitor(...)
#endif
#if defined(CONFIG_NET_NATIVE_IPV6)