drivers: wifi: siwx91x: Introduce flag for LIMIT_PACKET_BUF_PER_STA

Introduced WIFI_SILABS_SIWX91X_LIMIT_PACKET_BUF_PER_STA.
This flag limits packet queues in AP mode.

Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
This commit is contained in:
Muzaffar Ahmed 2025-05-13 15:21:26 +05:30 committed by Benjamin Cabé
commit d6e106b5f0
2 changed files with 13 additions and 0 deletions

View file

@ -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

View file

@ -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;
}