Skip to content

Commit 40b7dce

Browse files
committed
drivers: wifi: siwx91x: Adding TLS bitmap
To support the SiWx917 TLS Sockets , Need to enable the TLS bitmap in the intilization Signed-off-by: Rahul Gurram <rahul.gurram@silabs.com>
1 parent 942de4b commit 40b7dce

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

drivers/wifi/siwx91x/Kconfig.siwx91x

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@ config WIFI_SILABS_SIWX91X_DNS_CLIENT
134134
resources than the Zephyr one. See also sl_net_dns.h in Silabs
135135
HAL for more information about the API.
136136

137+
config WIFI_SILABS_SIWX91X_ENABLE_TLS
138+
bool "Offloaded implementation of TLS"
139+
help
140+
Enable this option to allow to use the TLS(Transport layer Security)
141+
implementation over the network provided by the Network Co-Processor
142+
present on SiWx91x series. This implementation usually require less
143+
resources than the Zephyr one.
144+
137145
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
138146
bool "WiFi roaming support"
139147
default y

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ static void siwx91x_configure_network_stack(sl_si91x_boot_configuration_t *boot_
142142
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_DNS_CLIENT)) {
143143
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_DNS_CLIENT;
144144
}
145+
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_ENABLE_TLS)) {
146+
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_SSL;
147+
}
145148
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_MQTT_CLIENT)) {
146149
boot_config->ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_EMB_MQTT_ENABLE;
147150
}

0 commit comments

Comments
 (0)