Skip to content

Commit 6455609

Browse files
committed
drivers: wifi: siwx91x: ICMP NetStack Application
To support the SiWx917 ICMP Network Stack Application protocol offloading, we need to integrate the Silicon Labs APIs, so adding the corresponding source files and include files in the kconfig and CMakelist Signed-off-by: Rahul Gurram <rahul.gurram@silabs.com>
1 parent 8986e3e commit 6455609

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

drivers/wifi/siwx91x/Kconfig.siwx91x

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ config WIFI_SILABS_SIWX91X_MQTT_CLIENT
9898
than the Zephyr one. See also sl_mqtt_client.h in Silabs HAL for more
9999
information about the API.
100100

101+
config WIFI_SILABS_SIWX91X_PING
102+
bool "Offloaded implementation of ICMP client"
103+
help
104+
Enable this option to allow to use the MQTT(Internet Control Message
105+
Protocol) implementation provided by the Network Co-Processor present
106+
on SiWx91x series. This implementation usually require less resources
107+
than the Zephyr one. See also sl_net_ping.h in Silabs HAL for more
108+
information about the API.
109+
101110
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
102111
bool "WiFi roaming support"
103112
default y

modules/hal_silabs/wiseconnect/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ if(CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD)
143143
zephyr_library_sources_ifdef(CONFIG_WIFI_SILABS_SIWX91X_MQTT_CLIENT
144144
${WISECONNECT_DIR}/components/service/mqtt/si91x/sl_mqtt_client.c
145145
)
146+
zephyr_include_directories_ifdef(CONFIG_WIFI_SILABS_SIWX91X_PING
147+
${WISECONNECT_DIR}/components/device/silabs/si91x/wireless/icmp
148+
)
149+
zephyr_library_sources_ifdef(CONFIG_WIFI_SILABS_SIWX91X_PING
150+
${WISECONNECT_DIR}/components/device/silabs/si91x/wireless/icmp/sl_net_ping.c
151+
)
146152
endif() # CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD
147153
if(CONFIG_BT_SILABS_SIWX91X)
148154
zephyr_compile_definitions(

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ static void siwx91x_configure_network_stack(sl_si91x_boot_configuration_t *boot_
133133
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_HTTP_CLIENT)) {
134134
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_HTTP_CLIENT;
135135
}
136+
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_PING)) {
137+
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_ICMP;
138+
}
136139
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_MQTT_CLIENT)) {
137140
boot_config->ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_EMB_MQTT_ENABLE;
138141
}

0 commit comments

Comments
 (0)