diff --git a/drivers/wifi/siwx91x/Kconfig.siwx91x b/drivers/wifi/siwx91x/Kconfig.siwx91x index e1ece13c9b9..2df8bb5da66 100644 --- a/drivers/wifi/siwx91x/Kconfig.siwx91x +++ b/drivers/wifi/siwx91x/Kconfig.siwx91x @@ -45,6 +45,14 @@ config NET_MGMT_EVENT_STACK_SIZE config NET_MGMT_EVENT_QUEUE_SIZE default 10 +config WIFI_SILABS_SIWX91X_LIMIT_PACKET_BUF_PER_STA + bool "Limits the number of packets buffered per STA in AP mode" + default y + help + In AP mode, if the bit is set, only two packets per Station (STA) + would be buffered when the STA is in Power Save (PS) mode. + This helps manage buffer usage and ensures efficient packet handling. + config WIFI_SILABS_SIWX91X_ENABLE_ROAMING bool "WiFi roaming support" help diff --git a/soc/silabs/silabs_siwx91x/siwg917/nwp.c b/soc/silabs/silabs_siwx91x/siwg917/nwp.c index 71a20ac33c3..c29abc63bfc 100644 --- a/soc/silabs/silabs_siwx91x/siwg917/nwp.c +++ b/soc/silabs/silabs_siwx91x/siwg917/nwp.c @@ -109,6 +109,11 @@ int siwg91x_get_nwp_config(int wifi_oper_mode, sl_wifi_device_configuration_t *g if (IS_ENABLED(CONFIG_BT_SILABS_SIWX91X)) { LOG_WRN("Bluetooth is not supported in AP mode"); } + + if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_LIMIT_PACKET_BUF_PER_STA)) { + boot_config->custom_feature_bit_map |= SL_SI91X_CUSTOM_FEAT_LIMIT_PACKETS_PER_STA; + } + } else { return -EINVAL; }