Skip to content

Commit 775f782

Browse files
Bluetooth: Mesh: Increase default MBEDTLS_HEAP_SIZE for NLC profile
Increasing the default MBEDTLS_HEAP_SIZE to 1152 to accommodate all the keys used by NLC profile. Signed-off-by: alperen sener <[email protected]>
1 parent f3a5cfa commit 775f782

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

subsys/bluetooth/mesh/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ config BT_MESH_MBEDTLS_BACKEND_ENABLE
2424
imply MBEDTLS_ENABLE_HEAP
2525
imply PSA_WANT_GENERATE_RANDOM
2626

27+
# NLC profile support requires more netkeys and appkeys thus more HEAP is needed by
28+
# MEBEDTLS to accommodate minimum number of keys needed by NLC profile support.
2729
config MBEDTLS_HEAP_SIZE
30+
default 1152 if BT_MESH_NLC_PERF_CONF
2831
default 1024
2932

3033
if BT_SETTINGS

0 commit comments

Comments
 (0)