Skip to content

Commit 0633fd5

Browse files
committed
drivers: wifi: siwx91x: DNS NetStack Application
To support the SiWx917 DNS 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 faa61c3 commit 0633fd5

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

drivers/wifi/siwx91x/Kconfig.siwx91x

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,15 @@ config WIFI_SILABS_SIWX91X_MDNS_RESPONDER
125125
than the Zephyr one. See also sl_mdns.h in Silabs HAL for more
126126
information about the API.
127127

128+
config WIFI_SILABS_SIWX91X_DNS_CLIENT
129+
bool "Offloaded implementation of DNS client"
130+
help
131+
Enable this option to allow to use the DNS(Domain Name System)
132+
implementation provided by the Network Co-Processor present on
133+
SiWx91x series. This implementation usually require less
134+
resources than the Zephyr one. See also sl_net_dns.h in Silabs
135+
HAL for more information about the API.
136+
128137
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
129138
bool "WiFi roaming support"
130139
default y

modules/hal_silabs/wiseconnect/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ if(CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD)
161161
zephyr_library_sources_ifdef(CONFIG_WIFI_SILABS_SIWX91X_MDNS_RESPONDER
162162
${WISECONNECT_DIR}/components/service/mdns/si91x/sl_mdns.c
163163
)
164+
zephyr_library_sources_ifdef(CONFIG_WIFI_SILABS_SIWX91X_DNS_CLIENT
165+
${WISECONNECT_DIR}/components/device/silabs/si91x/wireless/sl_net/src/sl_net_si91x.c
166+
)
164167
endif() # CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD
165168
if(CONFIG_BT_SILABS_SIWX91X)
166169
zephyr_compile_definitions(

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ static void siwx91x_configure_network_stack(sl_si91x_boot_configuration_t *boot_
139139
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_MDNS_RESPONDER)) {
140140
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_MDNSD;
141141
}
142+
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_DNS_CLIENT)) {
143+
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_DNS_CLIENT;
144+
}
142145
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_MQTT_CLIENT)) {
143146
boot_config->ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_EMB_MQTT_ENABLE;
144147
}

0 commit comments

Comments
 (0)