From 68163d80539e13a1da909d46ef64095836eadbde Mon Sep 17 00:00:00 2001 From: Georges Oates_Larsen Date: Wed, 16 Oct 2024 17:45:33 -0700 Subject: [PATCH] samples: mss: Fix Wi-Fi connectivity Various tweaks to fix Multi Service Sample Wi-Fi connectivity builds. IRIS-9847 Signed-off-by: Georges Oates_Larsen --- .../overlay_nrf700x_wifi_coap_no_lte.conf | 10 +++++----- .../overlay_nrf700x_wifi_mqtt_no_lte.conf | 9 +++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/samples/cellular/nrf_cloud_multi_service/overlay_nrf700x_wifi_coap_no_lte.conf b/samples/cellular/nrf_cloud_multi_service/overlay_nrf700x_wifi_coap_no_lte.conf index aebbff0a463..613c256798e 100644 --- a/samples/cellular/nrf_cloud_multi_service/overlay_nrf700x_wifi_coap_no_lte.conf +++ b/samples/cellular/nrf_cloud_multi_service/overlay_nrf700x_wifi_coap_no_lte.conf @@ -44,7 +44,7 @@ CONFIG_TFM_PARTITION_PROTECTED_STORAGE=y ## Configure TFM Profile. The NOT_SET profile will enable all features. ## We then reduce some settings to save flash and RAM. CONFIG_TFM_PROFILE_TYPE_NOT_SET=y -CONFIG_TFM_CRYPTO_CONC_OPER_NUM=1 +CONFIG_TFM_CRYPTO_CONC_OPER_NUM=4 CONFIG_TFM_CRYPTO_ASYM_SIGN_MODULE_ENABLED=n ## Configure TFM partitions @@ -62,7 +62,7 @@ CONFIG_WIFI_CREDENTIALS_SHELL=y CONFIG_TLS_CREDENTIALS_SHELL=y CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y # Increased stack size needed for wifi_cred auto_connect command -CONFIG_SHELL_STACK_SIZE=4500 +CONFIG_SHELL_STACK_SIZE=4850 # nRFCloud credentials can exceed 1024 bytes CONFIG_TLS_CREDENTIALS_SHELL_CRED_BUF_SIZE=3072 # Needed by the TLS credentials shell @@ -103,7 +103,7 @@ CONFIG_WIFI_NRF70_SKIP_LOCAL_ADMIN_MAC=y ## Enable Wi-Fi conn_mgr bindings CONFIG_L2_WIFI_CONNECTIVITY=y -CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=4096 +CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=4850 ## Enable WIFI_MGMT_EXT and WIFI_CREDENTIALS for simplified Wi-Fi connection setup CONFIG_WIFI_CREDENTIALS=y @@ -160,13 +160,13 @@ CONFIG_LOCATION_METHOD_WIFI=y CONFIG_NRF_WIFI_SCAN_MAX_BSS_CNT=10 CONFIG_LOCATION_METHOD_WIFI_SCANNING_RESULTS_MAX_CNT=10 # Add 256 bytes for each additional scanning result, assuming sane SSID lengths -CONFIG_HEAP_MEM_POOL_SIZE=138000 +CONFIG_HEAP_MEM_POOL_SIZE=153000 CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y ## Miscellaneous resource allocation tweaks needed to support Wi-Fi. CONFIG_MAIN_STACK_SIZE=2048 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096 -CONFIG_NET_MGMT_EVENT_QUEUE_SIZE=20 +CONFIG_NET_MGMT_EVENT_QUEUE_SIZE=30 CONFIG_APPLICATION_THREAD_STACK_SIZE=3072 CONFIG_MESSAGE_THREAD_STACK_SIZE=3072 CONFIG_CONNECTION_THREAD_STACK_SIZE=4500 diff --git a/samples/cellular/nrf_cloud_multi_service/overlay_nrf700x_wifi_mqtt_no_lte.conf b/samples/cellular/nrf_cloud_multi_service/overlay_nrf700x_wifi_mqtt_no_lte.conf index cbbf45937c8..50b78baf621 100644 --- a/samples/cellular/nrf_cloud_multi_service/overlay_nrf700x_wifi_mqtt_no_lte.conf +++ b/samples/cellular/nrf_cloud_multi_service/overlay_nrf700x_wifi_mqtt_no_lte.conf @@ -43,7 +43,7 @@ CONFIG_TFM_PARTITION_PROTECTED_STORAGE=y ## Configure TFM Profile. The NOT_SET profile will enable all features. ## We then reduce some settings to save flash and RAM. CONFIG_TFM_PROFILE_TYPE_NOT_SET=y -CONFIG_TFM_CRYPTO_CONC_OPER_NUM=1 +CONFIG_TFM_CRYPTO_CONC_OPER_NUM=4 CONFIG_TFM_CRYPTO_ASYM_SIGN_MODULE_ENABLED=n ## Configure TFM partitions @@ -61,7 +61,7 @@ CONFIG_WIFI_CREDENTIALS_SHELL=y CONFIG_TLS_CREDENTIALS_SHELL=y CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y # Increased stack size needed for wifi_cred auto_connect command -CONFIG_SHELL_STACK_SIZE=4500 +CONFIG_SHELL_STACK_SIZE=4850 # nRFCloud credentials can exceed 1024 bytes CONFIG_TLS_CREDENTIALS_SHELL_CRED_BUF_SIZE=2048 # Needed by the TLS credentials shell @@ -102,7 +102,7 @@ CONFIG_WIFI_NRF70_SKIP_LOCAL_ADMIN_MAC=y ## Enable Wi-Fi conn_mgr bindings CONFIG_L2_WIFI_CONNECTIVITY=y -CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=4096 +CONFIG_NET_CONNECTION_MANAGER_MONITOR_STACK_SIZE=4850 ## Enable WIFI_MGMT_EXT and WIFI_CREDENTIALS for simplified Wi-Fi connection setup CONFIG_WIFI_CREDENTIALS=y @@ -158,7 +158,7 @@ CONFIG_LOCATION_METHOD_WIFI=y CONFIG_NRF_WIFI_SCAN_MAX_BSS_CNT=10 CONFIG_LOCATION_METHOD_WIFI_SCANNING_RESULTS_MAX_CNT=10 # Add 256 bytes for each additional scanning result, assuming sane SSID lengths -CONFIG_HEAP_MEM_POOL_SIZE=136000 +CONFIG_HEAP_MEM_POOL_SIZE=153000 CONFIG_HEAP_MEM_POOL_IGNORE_MIN=y ## Miscellaneous resource allocation tweaks needed to support Wi-Fi. @@ -173,3 +173,4 @@ CONFIG_NET_TX_STACK_SIZE=2048 CONFIG_NET_RX_STACK_SIZE=2048 CONFIG_ZVFS_OPEN_MAX=16 CONFIG_NET_SOCKETS_POLL_MAX=8 +CONFIG_NET_MGMT_EVENT_QUEUE_SIZE=30