Skip to content

Commit d622e81

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

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
@@ -142,6 +142,14 @@ config WIFI_SILABS_SIWX91X_ENABLE_TLS
142142
present on SiWx91x series. This implementation usually require less
143143
resources than the Zephyr one.
144144

145+
config WIFI_SILABS_SIWX91X_ENABLE_SINGLE_TLS_SOCKET
146+
bool "Offloaded implementation of single TLS socket"
147+
depends on WIFI_SILABS_SIWX91X_ENABLE_TLS
148+
help
149+
Enable this option to allow to use the single TLS socket
150+
implementation over the network provided by the Network
151+
Co-Processor present on SiWx91x series.
152+
145153
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
146154
bool "WiFi roaming support"
147155
default y

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ static void siwx91x_configure_network_stack(sl_si91x_boot_configuration_t *boot_
145145
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_ENABLE_TLS)) {
146146
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_SSL;
147147
}
148+
if(IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_ENABLE_SINGLE_TLS_SOCKET)) {
149+
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_SINGLE_SSL_SOCKET;
150+
}
148151
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_MQTT_CLIENT)) {
149152
boot_config->ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_EMB_MQTT_ENABLE;
150153
}

0 commit comments

Comments
 (0)