Skip to content

Commit 5490fec

Browse files
committed
drivers: wifi: siwx91x: MDNS NetStack Application
To support the SiWx917 MDNS 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 feee2bc commit 5490fec

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
@@ -116,6 +116,15 @@ config WIFI_SILABS_SIWX91X_WEBSOCKET_CLIENT
116116
See also sl_websocket_client.h in Silabs HAL for more information
117117
about the API.
118118

119+
config WIFI_SILABS_SIWX91X_MDNS_RESPONDER
120+
bool "Offloaded implementation of MDNS responder"
121+
help
122+
Enable this option to allow to use the MDNS(Multicast Domain Name
123+
System) implementation provided by the Network Co-Processor present
124+
on SiWx91x series. This implementation usually require less resources
125+
than the Zephyr one. See also sl_mdns.h in Silabs HAL for more
126+
information about the API.
127+
119128
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
120129
bool "WiFi roaming support"
121130
default y

modules/hal_silabs/wiseconnect/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ if(CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD)
155155
zephyr_library_sources_ifdef(CONFIG_WIFI_SILABS_SIWX91X_WEBSOCKET_CLIENT
156156
${WISECONNECT_DIR}/components/service/sl_websocket_client/src/sl_websocket_client.c
157157
)
158+
zephyr_include_directories_ifdef(CONFIG_WIFI_SILABS_SIWX91X_MDNS_RESPONDER
159+
${WISECONNECT_DIR}/components/service/mdns/inc
160+
)
161+
zephyr_library_sources_ifdef(CONFIG_WIFI_SILABS_SIWX91X_MDNS_RESPONDER
162+
${WISECONNECT_DIR}/components/service/mdns/si91x/sl_mdns.c
163+
)
158164
endif() # CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD
159165
if(CONFIG_BT_SILABS_SIWX91X)
160166
zephyr_compile_definitions(

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ static void siwx91x_configure_network_stack(sl_si91x_boot_configuration_t *boot_
136136
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_PING)) {
137137
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_ICMP;
138138
}
139+
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_MDNS_RESPONDER)) {
140+
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_MDNSD;
141+
}
139142
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_MQTT_CLIENT)) {
140143
boot_config->ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_EMB_MQTT_ENABLE;
141144
}

0 commit comments

Comments
 (0)