Skip to content

RDKB-62720 - [SKY-VL-QE][Sprint]:Wan is down after loading latest sprint image in WANOE.#174

Merged
guto86 merged 1 commit into
mainfrom
XLE-Issue
Dec 8, 2025
Merged

RDKB-62720 - [SKY-VL-QE][Sprint]:Wan is down after loading latest sprint image in WANOE.#174
guto86 merged 1 commit into
mainfrom
XLE-Issue

Conversation

@LakshminarayananShenbagaraj
Copy link
Copy Markdown
Contributor

@LakshminarayananShenbagaraj LakshminarayananShenbagaraj commented Dec 8, 2025

Pull request overview

This PR fixes a WAN-down issue in WANOE (WAN over Ethernet) configurations caused by a previous change (PR #172). The fix addresses a race condition where the parallel scan policy could start a new interface state machine on an interface that was still in the process of shutting down, leading to incorrect WAN status.

  • Added a check for Interface_SM_Running flag in the parallel scan policy to prevent starting state machines on interfaces that are still active
  • Reordered Update_Interface_Status() call to execute before clearing DHCP data in the WAN deconfigured transition state

Reviewed changes

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

File Description
source/WanManager/wanmgr_policy_parallel_scan_impl.c Added Interface_SM_Running check to scanning interface condition to prevent race conditions when selecting new interfaces
source/WanManager/wanmgr_interface_sm.c Moved Update_Interface_Status() call before WanManager_ClearDHCPData() to ensure status is updated while interface data is still valid

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

…int image in WANOE.

Reason for the change:
https://github.com/rdkcentral/wan-manager/pull/172/files - Causing this issue. So wanted to correct this behavior.

Signed-off-by: LakshminarayananShenbagaraj <lakshminarayanan.shenbagaraj2@sky.uk>
@LakshminarayananShenbagaraj LakshminarayananShenbagaraj requested a review from a team as a code owner December 8, 2025 16:21
Copilot AI review requested due to automatic review settings December 8, 2025 16:21
@LakshminarayananShenbagaraj LakshminarayananShenbagaraj added the bug Something isn't working label Dec 8, 2025
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 fixes a WAN-down issue in WANOE (WAN over Ethernet) configurations caused by a previous change (PR #172). The fix addresses a race condition where the parallel scan policy could start a new interface state machine on an interface that was still in the process of shutting down, leading to incorrect WAN status.

  • Added a check for Interface_SM_Running flag in the parallel scan policy to prevent starting state machines on interfaces that are still active
  • Reordered Update_Interface_Status() call to execute before clearing DHCP data in the WAN deconfigured transition state

Reviewed changes

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

File Description
source/WanManager/wanmgr_policy_parallel_scan_impl.c Added Interface_SM_Running check to scanning interface condition to prevent race conditions when selecting new interfaces
source/WanManager/wanmgr_interface_sm.c Moved Update_Interface_Status() call before WanManager_ClearDHCPData() to ensure status is updated while interface data is still valid

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

@guto86 guto86 merged commit 0e66c17 into main Dec 8, 2025
13 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants