Skip to content

Commit

Permalink
DELIA-66411 : Retry when subscription to an event failed (rdkcentral#13)
Browse files Browse the repository at this point in the history
Reason for change: In the reported ticket, it is noticed that WiFi Plugin failed to subscribe `onAvailableSSIDs` event but didnt retry.
So when scan is called by application, the scan was success but it never posted any update as it never received `onAvailableSSIDs` event from unified networkmanager plugin
Test Procedure: As per DELIA-66411
Risks: Medium
Signed-off-by: Karunakaran A <[email protected]>
  • Loading branch information
karuna2git authored Sep 27, 2024
1 parent 6b3706f commit 5bc1b30
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions LegacyPlugin_NetworkAPIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,11 @@ const string CIDR_PREFIXES[CIDR_NETMASK_IP_LEN] = {
m_timer.stop();
NMLOG_INFO("subscriber timer stoped");
}
else
{
m_timer.start(SUBSCRIPTION_TIMEOUT_IN_MILLISECONDS);
NMLOG_INFO("subscriber timer started");
}
}

string Network::getInterfaceMapping(const string & interface)
Expand Down
5 changes: 5 additions & 0 deletions LegacyPlugin_WiFiManagerAPIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,11 @@ namespace WPEFramework
m_timer.stop();
NMLOG_INFO("subscriber timer stoped");
}
else
{
m_timer.start(SUBSCRIPTION_TIMEOUT_IN_MILLISECONDS);
NMLOG_INFO("subscriber timer started");
}
}

bool WiFiManager::ErrorCodeMapping(const uint32_t ipvalue, uint32_t &opvalue)
Expand Down

0 comments on commit 5bc1b30

Please sign in to comment.