Skip to content

Conversation

D-Triveni
Copy link
Contributor

Add support to set the test certificates directory for enterprise mode when an external certs directory is provided at build time.

Add support to set the test certificates directory for enterprise
mode when an external certs directory is provided at build time.
This change overrides the default certs folder if a different path
is specified during build.

Signed-off-by: Triveni Danda <[email protected]>
Increased wpa_supplicant heap size for enterprise mode to
support larger certificates required during connection.
This is needed in case if any larger certs are passed than
default certs.

Signed-off-by: Triveni Danda <[email protected]>
Copy link

sonarqubecloud bot commented Oct 9, 2025

set(gen_inc_dir ${ZEPHYR_BINARY_DIR}/misc/generated)
set(gen_dir ${gen_inc_dir}/wifi_enterprise_test_certs)
zephyr_get(WIFI_TEST_CERTS_DIR SYSBUILD GLOBAL)
message("WIFI_TEST_CERTS_DIR is set to ${WIFI_TEST_CERTS_DIR}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the override is already supported https://docs.zephyrproject.org/latest/connectivity/networking/api/wifi.html#wi-fi-enterprise-test-x-509-certificate-management DWIFI_TEST_CERTS_DIR=<>, why is this needed? Is it only for sysbuild?

def_int 60000 if WIFI_USAGE_MODE_STA_AP
def_int 55000 if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE && WIFI_CREDENTIALS
def_int 48000 if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
def_int 55000 if WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid generic increase, document this and let user configure higher heap? This affects all cases including smaller certs. And also we should define large certs e.g., chained CAs ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants