Skip to content

Commit edf0de5

Browse files
committed
snippets: wifi-enterprise: Increase MBEDTLS heap size
With NRF security, higher heap requirement is seen for operating with RSA-3072 based certificates. Add a NRF SoC specific conf in snippets to handle this. Signed-off-by: Ravi Dondaputi <ravi.dondaputi@nordicsemi.no>
1 parent 322da1d commit edf0de5

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

snippets/wifi-enterprise/snippet.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
name: wifi-enterprise
22
append:
33
EXTRA_CONF_FILE: wifi-enterprise.conf
4+
5+
boards:
6+
/.*/nrf.*/cpuapp/:
7+
append:
8+
EXTRA_CONF_FILE: wifi-enterprise_nrf.conf
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Enable Wi-Fi enterprise mode
2+
CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE=y
3+
# Use variable data size to reduce memory usage for small data packets
4+
CONFIG_NET_BUF_VARIABLE_DATA_SIZE=y
5+
# For TLS and X.509 processing MbedTLS needs large heap size and using separate heap
6+
# for MbedTLS gives us more control over the heap size.
7+
CONFIG_MBEDTLS_ENABLE_HEAP=y
8+
CONFIG_MBEDTLS_HEAP_SIZE=75000
9+
10+
# For use with TLS credentials
11+
CONFIG_TLS_CREDENTIALS_SHELL=y
12+
CONFIG_BASE64=y
13+
CONFIG_TLS_CREDENTIALS=y
14+
CONFIG_TLS_CREDENTIALS_SHELL_CRED_BUF_SIZE=8192
15+
CONFIG_TLS_MAX_CREDENTIALS_NUMBER=6
16+
CONFIG_HEAP_MEM_POOL_ADD_SIZE_TLS_CRED_SHELL=9000
17+
CONFIG_NRF_WIFI_DATA_HEAP_SIZE=100000

0 commit comments

Comments
 (0)