From 3d4570d99fcfec64d16e8ea4c117850dea8effb8 Mon Sep 17 00:00:00 2001 From: Vysakh A V Date: Mon, 4 May 2026 19:34:12 +0100 Subject: [PATCH] Correct MAC address format on agent side MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reason for change: Device details were not displayed correctly on the Cujo cloud. The root cause was that the MAC address was being sent in a non–colon‑separated format. This change ensures the MAC address is properly formatted before being sent from the agent to the cloud during connection. Test Procedure: - Load the updated image on the device. - Verify that the agent successfully connects to the cloud. - Confirm that device and client details are displayed correctly on the cloud portal. Priority: P1 Risk: Low Signed-off-by: Vysakh A V --- source/AdvSecurityDml/cosa_adv_security_internal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/AdvSecurityDml/cosa_adv_security_internal.c b/source/AdvSecurityDml/cosa_adv_security_internal.c index f722552..e10ddc1 100644 --- a/source/AdvSecurityDml/cosa_adv_security_internal.c +++ b/source/AdvSecurityDml/cosa_adv_security_internal.c @@ -1161,9 +1161,10 @@ CosaSecurityInitialize #elif defined(PON_GATEWAY) // For PON gateway, always use HAL API char deviceMACStr[32] = {0}; - if (platform_hal_GetBaseMacAddress(deviceMACStr) == 0) + rc = platform_hal_GetBaseMacAddress(deviceMACStr); + if ( rc == 0 && deviceMACStr[0] != '\0' ) { - AnscMacToLower(deviceMac, deviceMACStr, sizeof(deviceMac)); + strcpy_s(deviceMac, sizeof(deviceMac), deviceMACStr); CcspTraceInfo(("CcspAdvSecurity: deviceMac [%s]\n", deviceMac)); } else