Skip to content

Commit 71931a0

Browse files
krish2718kartben
authored andcommitted
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>
1 parent a409d31 commit 71931a0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/wifi/nrf_wifi/Kconfig.nrfwifi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,22 @@ config NET_TC_TX_COUNT
551551

552552
endif # NETWORKING
553553

554+
config NRF_WIFI_USE_VARIABLE_NET_BUFS
555+
bool "Use variable network buffers"
556+
default y
557+
help
558+
This option enables the use of variable network buffers in the nRF70 driver.
559+
Variable network buffers optimize RAM usage by allocating buffers of different sizes
560+
based on the data size. This option is enabled by default to optimize RAM usage.
561+
Samples and applications can override this option for higher performance.
562+
563+
if NRF_WIFI_USE_VARIABLE_NET_BUFS
554564
# nRF70 now uses variable buffers as default to optimize RAM usage. Default pool sizes are used, samples/apps can override
555565
# for higher performance.
556566
choice NET_PKT_DATA_ALLOC_TYPE
557567
default NET_BUF_VARIABLE_DATA_SIZE
558568
endchoice
569+
endif # NRF_WIFI_USE_VARIABLE_NET_BUFS
559570

560571
config MAIN_STACK_SIZE
561572
default 4096

0 commit comments

Comments
 (0)