Skip to content

Commit bb48e78

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

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
@@ -188,6 +188,23 @@ config WIFI_SILABS_SIWX91X_SSL_MEMORY_CLOUD
188188
to avoid handshake failure.This implementation is provided by the
189189
Network Co-Processor present on SiWx91x series.
190190

191+
config WIFI_SILABS_SIWX91X_SOCKET_SELECT
192+
bool "Offloaded implementation for socket select"
193+
help
194+
Enable this option for the configuration of socket select
195+
implementation over the network provided by the Network
196+
Co-Processor present on SiWx91x series.
197+
198+
config WIFI_SILABS_SIWX91X_SOCKET_SELECT_COUNT
199+
int "Offloaded implementation of select"
200+
default 10
201+
range 1 10
202+
depends on WIFI_SILABS_SIWX91X_SOCKET_SELECT
203+
help
204+
Configure this option for the number of select operations the
205+
device can handle, with a maximum value of 10. This implementation
206+
is provided by the Network Co-Processor present on SiWx91x series.
207+
191208
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
192209
bool "WiFi roaming support"
193210
default y

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ static void siwx91x_configure_network_stack(sl_si91x_boot_configuration_t *boot_
165165
boot_config->ext_tcp_ip_feature_bit_map |=
166166
SL_SI91X_EXT_TCP_IP_FEAT_SSL_MEMORY_CLOUD;
167167
}
168+
#ifdef CONFIG_WIFI_SILABS_SIWX91X_SOCKET_SELECT
169+
boot_config->ext_tcp_ip_feature_bit_map |=
170+
SL_SI91X_EXT_TCP_IP_TOTAL_SELECTS(CONFIG_WIFI_SILABS_SIWX91X_SOCKET_SELECT_COUNT);
171+
#endif
168172
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_SSL_VERSIONS_SUPPORT)) {
169173
boot_config->ext_custom_feature_bit_map |=
170174
SL_SI91X_EXT_FEAT_SSL_VERSIONS_SUPPORT;

0 commit comments

Comments
 (0)