Skip to content

RDKTV-37660 - TVOffline marker seen after waking up due to Roam event#188

Merged
karuna2git merged 2 commits intodevelopfrom
topic/connectivity
Jul 14, 2025
Merged

RDKTV-37660 - TVOffline marker seen after waking up due to Roam event#188
karuna2git merged 2 commits intodevelopfrom
topic/connectivity

Conversation

@gururaajar
Copy link
Copy Markdown
Contributor

Reason for change: The issue is happening because of the race condition happening between the 2 threads(connectivityMonitorFunction and the main thread in which switchToInitialCheck executes). Because of the race condition, switchToInitialCheck() was triggered before the m_wlanConnected was set to true. So the execution goes inside [else if (_instance != nullptr && !_instance->m_ethConnected && !_instance->m_wlanConnected)] and no event is actually posted as InitialRetryCount was already set to 1. Made changes to ReportInterfaceStateChange() to set m_wlanConnected to true when the interface is UP and then switchToInitialCheck() is triggered.
Test Procedure: Deep sleep to wake up scenario
Priority:P1
Risks: Medium

Reason for change: The issue is happening because of the race condition happening between the 2 threads(connectivityMonitorFunction and the main thread in which switchToInitialCheck executes). Because of the race condition, switchToInitialCheck() was triggered before the m_wlanConnected was set to true. So the execution goes inside [else if (_instance != nullptr && !_instance->m_ethConnected && !_instance->m_wlanConnected)] and no event is actually posted as InitialRetryCount was already set to 1. Made changes to ReportInterfaceStateChange() to set m_wlanConnected to true when the interface is UP and then switchToInitialCheck() is triggered.
Test Procedure: Deep sleep to wake up scenario
Priority:P1
Risks: Medium
Signed-off-by: Gururaaja E S R <Gururaja_ErodeSriranganRamlingham.comcast.com>
@gururaajar gururaajar requested a review from a team as a code owner July 11, 2025 22:10
@karuna2git karuna2git merged commit d2e6dbe into develop Jul 14, 2025
11 checks passed
@karuna2git karuna2git deleted the topic/connectivity branch July 14, 2025 13:41
karuna2git pushed a commit that referenced this pull request Jul 14, 2025
…#188)

Reason for change: The issue is happening because of the race condition happening between the 2 threads(connectivityMonitorFunction and the main thread in which switchToInitialCheck executes). Because of the race condition, switchToInitialCheck() was triggered before the m_wlanConnected was set to true. So the execution goes inside [else if (_instance != nullptr && !_instance->m_ethConnected && !_instance->m_wlanConnected)] and no event is actually posted as InitialRetryCount was already set to 1. Made changes to ReportInterfaceStateChange() to set m_wlanConnected to true when the interface is UP and then switchToInitialCheck() is triggered.
Test Procedure: Deep sleep to wake up scenario
Priority:P1
Risks: Medium

Signed-off-by: Gururaaja E S R <Gururaja_ErodeSriranganRamlingham.comcast.com>
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.

2 participants