drivers: nrf_wifi: Add a config option for variable bufs override

We need a way to disable the variable buffers override.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
This commit is contained in:
Chaitanya Tata 2025-03-18 21:50:57 +05:30 committed by Benjamin Cabé
commit 71931a0864

View file

@ -551,11 +551,22 @@ config NET_TC_TX_COUNT
endif # NETWORKING
config NRF_WIFI_USE_VARIABLE_NET_BUFS
bool "Use variable network buffers"
default y
help
This option enables the use of variable network buffers in the nRF70 driver.
Variable network buffers optimize RAM usage by allocating buffers of different sizes
based on the data size. This option is enabled by default to optimize RAM usage.
Samples and applications can override this option for higher performance.
if NRF_WIFI_USE_VARIABLE_NET_BUFS
# nRF70 now uses variable buffers as default to optimize RAM usage. Default pool sizes are used, samples/apps can override
# for higher performance.
choice NET_PKT_DATA_ALLOC_TYPE
default NET_BUF_VARIABLE_DATA_SIZE
endchoice
endif # NRF_WIFI_USE_VARIABLE_NET_BUFS
config MAIN_STACK_SIZE
default 4096