Skip to content

XF10-696: Correct MAC address format on agent side#65

Merged
SanthoshGujulvajagadeesh merged 1 commit intordkcentral:developfrom
vysakhav:develop
May 6, 2026
Merged

XF10-696: Correct MAC address format on agent side#65
SanthoshGujulvajagadeesh merged 1 commit intordkcentral:developfrom
vysakhav:develop

Conversation

@vysakhav
Copy link
Copy Markdown
Contributor

@vysakhav vysakhav commented May 6, 2026

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 vysakh.venugopal@sky.uk

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 <vysakh.venugopal@sky.uk>
Copilot AI review requested due to automatic review settings May 6, 2026 08:37
@vysakhav vysakhav requested review from a team as code owners May 6, 2026 08:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to ensure the agent sends a correctly formatted (colon-separated) MAC address to the Cujo cloud so device/client details display properly during connection, specifically for the PON_GATEWAY platform path.

Changes:

  • Stores the return code from platform_hal_GetBaseMacAddress() in rc and checks for both success and non-empty output.
  • Copies the HAL-provided MAC string directly into deviceMac for PON_GATEWAY builds (replacing the prior conversion step).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

if ( rc == 0 && deviceMACStr[0] != '\0' )
{
AnscMacToLower(deviceMac, deviceMACStr, sizeof(deviceMac));
strcpy_s(deviceMac, sizeof(deviceMac), deviceMACStr);
@SanthoshGujulvajagadeesh SanthoshGujulvajagadeesh merged commit 13d27fc into rdkcentral:develop May 6, 2026
10 of 11 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants