From 957e3ca997a7aaffd1f46d4a41cee6923c73709a Mon Sep 17 00:00:00 2001 From: Marek Kwaczynski Date: Thu, 18 Sep 2025 10:50:49 +0200 Subject: [PATCH] cloud_discovery: run est_client enroll before discovery process Always obtain EST certificates before starting the discovery process. This ensures certificates are already available from the EST server, since the FQDN may be provided via DHCP discovery or another discovery method, and requires valid certificates to proceed. Fixes: WIFI-15123 Signed-off-by: Marek Kwaczynski --- feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery b/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery index c8ee6dc45..dba3d35ed 100755 --- a/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery +++ b/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery @@ -260,11 +260,11 @@ function interval_handler() { if (!time_is_valid()) return; - discovery_method = DISCOVER_DHCP; - if (discover_dhcp()) + if (system('/usr/bin/est_client enroll')) return; - if (system('/usr/bin/est_client enroll')) + discovery_method = DISCOVER_DHCP; + if (discover_dhcp()) return; discovery_method = DISCOVER_FLASH;