Skip to content

Commit 67cac69

Browse files
app: optimize heap on t91x
Wifi scan heap on t91x can optimized. We gain around 23kB ram. Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
1 parent 883709d commit 67cac69

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/boards/thingy91x_nrf9151_ns.conf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@ CONFIG_NRF70_BH_WQ_STACK_SIZE=768
3030
CONFIG_NRF70_IRQ_WQ_STACK_SIZE=832
3131
# Scan only using offload API
3232
CONFIG_WIFI_NM_WPA_SUPPLICANT=n
33-
# Wifi scan requires extended heap size
34-
CONFIG_HEAP_MEM_POOL_SIZE=20000
3533
CONFIG_NET_STATISTICS_WIFI=y
3634

35+
# Wifi scan requires extended heap size
36+
# Heap allocations should be changed when CONFIG_LOCATION_METHOD_WIFI_SCANNING_RESULTS_MAX_CNT
37+
# and CONFIG_NRF_WIFI_SCAN_MAX_BSS_CNT (which should be the same value) are changed.
38+
CONFIG_NRF_WIFI_CTRL_HEAP_SIZE=10240
39+
CONFIG_HEAP_MEM_POOL_SIZE=6144
40+
CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y
41+
3742
# Wi-Fi location
3843
CONFIG_LOCATION_METHOD_WIFI=y
3944
CONFIG_LOCATION_REQUEST_DEFAULT_METHOD_FIRST_WIFI=y

0 commit comments

Comments
 (0)