diff --git a/subsys/net/ip/Kconfig b/subsys/net/ip/Kconfig index e3b499ecf9c3..6853869a3ccb 100644 --- a/subsys/net/ip/Kconfig +++ b/subsys/net/ip/Kconfig @@ -930,6 +930,9 @@ config NET_DEFAULT_IF_PPP bool "PPP interface" depends on NET_L2_PPP +config NET_DEFAULT_IF_OFFLOADED_NETDEV + bool "Offloaded network device" + config NET_DEFAULT_IF_WIFI bool "WiFi interface" depends on NET_L2_ETHERNET diff --git a/subsys/net/ip/net_if.c b/subsys/net/ip/net_if.c index c86a1d1b9d36..096f88458557 100644 --- a/subsys/net/ip/net_if.c +++ b/subsys/net/ip/net_if.c @@ -632,6 +632,9 @@ struct net_if *net_if_get_default(void) #if defined(CONFIG_NET_DEFAULT_IF_PPP) iface = net_if_get_first_by_type(&NET_L2_GET_NAME(PPP)); #endif +#if defined(CONFIG_NET_DEFAULT_IF_OFFLOADED_NETDEV) + iface = net_if_get_first_by_type(&NET_L2_GET_NAME(OFFLOADED_NETDEV)); +#endif #if defined(CONFIG_NET_DEFAULT_IF_UP) iface = net_if_get_first_up(); #endif