Skip to content

Commit ca9b174

Browse files
committed
drivers: wifi: siwx91x: Configure sockets
Added support to Configure number of sockets in SiWx917 Signed-off-by: Rahul Gurram <rahul.gurram@silabs.com>
1 parent bb48e78 commit ca9b174

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

drivers/wifi/siwx91x/Kconfig.siwx91x

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,23 @@ config WIFI_SILABS_SIWX91X_SOCKET_SELECT_COUNT
205205
device can handle, with a maximum value of 10. This implementation
206206
is provided by the Network Co-Processor present on SiWx91x series.
207207

208+
config WIFI_SILABS_SIWX91X_SOCKETS
209+
bool "Offloaded implementation to configure sockets"
210+
help
211+
Enable this option to configure the number of sockets in SiWx91x.
212+
over the network .This implementation is provided by the Network
213+
Co-Processor present on SiWx91x series.
214+
215+
config WIFI_SILABS_SIWX91X_TOTAL_SOCKETS
216+
int "Offloaded implementation for maximum number of sockets"
217+
default 10
218+
range 1 10
219+
depends on WIFI_SILABS_SIWX91X_SOCKETS
220+
help
221+
Configure this option for total number of sockets to use. A maximum
222+
of 10 sockets are allowed to use. This implementation is provided
223+
by the Network Co-Processor present on SiWx91x series.
224+
208225
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
209226
bool "WiFi roaming support"
210227
default y

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ static void siwx91x_configure_network_stack(sl_si91x_boot_configuration_t *boot_
151151
if(IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_ENABLE_SINGLE_TLS_SOCKET)) {
152152
boot_config->tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_SINGLE_SSL_SOCKET;
153153
}
154+
#ifdef CONFIG_WIFI_SILABS_SIWX91X_SOCKETS
155+
boot_config->tcp_ip_feature_bit_map |=
156+
SL_SI91X_TCP_IP_TOTAL_SOCKETS(CONFIG_WIFI_SILABS_SIWX91X_TOTAL_SOCKETS);
157+
#endif
154158
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_MQTT_CLIENT)) {
155159
boot_config->ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_EMB_MQTT_ENABLE;
156160
}

0 commit comments

Comments
 (0)