Skip to content

Commit d6e106b

Browse files
muahmed-silabskartben
authored andcommitted
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>
1 parent 699fc6d commit d6e106b

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

drivers/wifi/siwx91x/Kconfig.siwx91x

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ config NET_MGMT_EVENT_STACK_SIZE
4545
config NET_MGMT_EVENT_QUEUE_SIZE
4646
default 10
4747

48+
config WIFI_SILABS_SIWX91X_LIMIT_PACKET_BUF_PER_STA
49+
bool "Limits the number of packets buffered per STA in AP mode"
50+
default y
51+
help
52+
In AP mode, if the bit is set, only two packets per Station (STA)
53+
would be buffered when the STA is in Power Save (PS) mode.
54+
This helps manage buffer usage and ensures efficient packet handling.
55+
4856
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
4957
bool "WiFi roaming support"
5058
help

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ int siwg91x_get_nwp_config(int wifi_oper_mode, sl_wifi_device_configuration_t *g
109109
if (IS_ENABLED(CONFIG_BT_SILABS_SIWX91X)) {
110110
LOG_WRN("Bluetooth is not supported in AP mode");
111111
}
112+
113+
if (IS_ENABLED(CONFIG_WIFI_SILABS_SIWX91X_LIMIT_PACKET_BUF_PER_STA)) {
114+
boot_config->custom_feature_bit_map |= SL_SI91X_CUSTOM_FEAT_LIMIT_PACKETS_PER_STA;
115+
}
116+
112117
} else {
113118
return -EINVAL;
114119
}

0 commit comments

Comments
 (0)