mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 02:17:58 +00:00 
			
		
		
		
	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 <marek@shasta.cloud>
This commit is contained in:
		| @@ -260,11 +260,11 @@ function interval_handler() { | |||||||
| 		if (!time_is_valid()) | 		if (!time_is_valid()) | ||||||
| 			return; | 			return; | ||||||
|  |  | ||||||
| 		discovery_method = DISCOVER_DHCP; | 		if (system('/usr/bin/est_client enroll')) | ||||||
| 		if (discover_dhcp()) |  | ||||||
| 			return; | 			return; | ||||||
|  |  | ||||||
| 		if (system('/usr/bin/est_client enroll')) | 		discovery_method = DISCOVER_DHCP; | ||||||
|  | 		if (discover_dhcp()) | ||||||
| 			return; | 			return; | ||||||
|  |  | ||||||
| 		discovery_method = DISCOVER_FLASH; | 		discovery_method = DISCOVER_FLASH; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Marek Kwaczynski
					Marek Kwaczynski