1 /* 2 * Copyright (c) 2023 Antmicro 3 * Copyright (c) 2024 Silicon Laboratories Inc. 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef SIWX91X_WIFI_SOCKET_H 7 #define SIWX91X_WIFI_SOCKET_H 8 9 #include <zephyr/net/net_if.h> 10 #include <zephyr/net/offloaded_netdev.h> 11 #include <assert.h> 12 13 struct siwx91x_dev; 14 15 #ifdef CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD 16 17 enum offloaded_net_if_types siwx91x_get_type(void); 18 void siwx91x_on_join_ipv4(struct siwx91x_dev *sidev); 19 void siwx91x_on_join_ipv6(struct siwx91x_dev *sidev); 20 void siwx91x_sock_init(struct net_if *iface); 21 22 #else /* CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD */ 23 siwx91x_get_type(void)24enum offloaded_net_if_types siwx91x_get_type(void) 25 { 26 assert(0); 27 } 28 siwx91x_on_join_ipv4(struct siwx91x_dev * sidev)29void siwx91x_on_join_ipv4(struct siwx91x_dev *sidev) 30 { 31 } 32 siwx91x_on_join_ipv6(struct siwx91x_dev * sidev)33void siwx91x_on_join_ipv6(struct siwx91x_dev *sidev) 34 { 35 } 36 siwx91x_sock_init(struct net_if * iface)37void siwx91x_sock_init(struct net_if *iface) 38 { 39 } 40 41 #endif /* CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD */ 42 43 #endif 44