Skip to content

RDKBACCL-1940 : Firmware Upgrade is not working#10

Open
anatar818 wants to merge 4 commits into
developfrom
anatar818-patch-2
Open

RDKBACCL-1940 : Firmware Upgrade is not working#10
anatar818 wants to merge 4 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

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 on lines 839 to 842
chat MAC_CMD[128]={0};
snprintf(MAC_CMD, sizeof(path), "/sbin/ifconfig %s | grep HWaddr | cut -c39-55", g_virtualIfName);
FILE *fp = popen(MAC_CMD, "r");
if (!fp) {
Comment thread source/fwupgrade/fwupgrade_hal.c Outdated
Comment thread source/fwupgrade/fwupgrade_hal.c
Copilot AI review requested due to automatic review settings July 14, 2026 09:28

Copilot AI left a comment

Copy link
Copy Markdown

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

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 Outdated
Comment thread source/fwupgrade/fwupgrade_hal.c
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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants