Skip to content

RDKBACCL-1940 : Firmware Upgrade is not working - #10

Merged
anatar818 merged 5 commits into
developfrom
anatar818-patch-2
Aug 3, 2026
Merged

RDKBACCL-1940 : Firmware Upgrade is not working#10
anatar818 merged 5 commits into
developfrom
anatar818-patch-2

Conversation

@anatar818

Copy link
Copy Markdown
Contributor

Configurable WAN Feature requires dynamic wan details to be fetched from the respective file which contains the details

Refactor MAC command to use dynamic interface name from wan_name.txt.
Copilot AI review requested due to automatic review settings July 14, 2026 09:25
Removed unused variable 'path' from fwupgrade_hal.c

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the firmware-upgrade Xconf fetch path to derive the WAN interface name dynamically (via /nvram/wan_name.txt) instead of relying on a fixed interface, so the device MAC can be determined correctly for the Xconf request.

Changes:

  • Remove the hardcoded interface-based MAC lookup macro.
  • Add logic to read the WAN interface name from /nvram/wan_name.txt and build the MAC lookup command dynamically.

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

Comment thread source/fwupgrade/fwupgrade_hal.c Outdated
Comment thread source/fwupgrade/fwupgrade_hal.c Outdated
Comment thread source/fwupgrade/fwupgrade_hal.c Outdated
Copilot AI review requested due to automatic review settings July 14, 2026 09:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread source/fwupgrade/fwupgrade_hal.c Outdated
Copilot AI review requested due to automatic review settings July 14, 2026 09:32
Comment thread source/fwupgrade/fwupgrade_hal.c Dismissed
Comment thread source/fwupgrade/fwupgrade_hal.c Dismissed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread source/fwupgrade/fwupgrade_hal.c
Comment thread source/fwupgrade/fwupgrade_hal.c Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 14, 2026 09:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread source/fwupgrade/fwupgrade_hal.c
Comment thread source/fwupgrade/fwupgrade_hal.c
Copilot AI review requested due to automatic review settings July 30, 2026 13:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (2)

source/fwupgrade/fwupgrade_hal.c:841

  • The interface name read from sysevent get current_wan_ifname is only trimmed for \n. If the output includes a trailing \r (CRLF), it will remain and can cause the subsequent ifconfig call to fail. Trim both \r and \n.
           g_virtualIfName[strcspn(g_virtualIfName, "\n")] = '\0';

source/fwupgrade/fwupgrade_hal.c:830

  • The interface name read from /nvram/wan_name.txt is only trimmed for \n. If the file uses CRLF line endings, a trailing \r will remain and break the ifname used later. Trim both \r and \n.

This issue also appears on line 841 of the same file.

            g_virtualIfName[strcspn(g_virtualIfName, "\n")] = '\0';

Comment thread source/fwupgrade/fwupgrade_hal.c
Comment thread source/fwupgrade/fwupgrade_hal.c
@anatar818
anatar818 merged commit b65af99 into develop Aug 3, 2026
7 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 3, 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.

5 participants