Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SERXIONE-6805 Box reboots with reboot reason MAINTENANCE_REBOOT, when the box is in Active Standby #62

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions NetworkManagerImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,12 @@ namespace WPEFramework
{
_notificationLock.Lock();
NMLOG_INFO("Posting onActiveInterfaceChange %s", currentActiveinterface.c_str());

if(currentActiveinterface == "eth0")
m_ethConnected = true;
else if (currentActiveinterface == "wlan0")
m_wlanConnected = true;

for (const auto callback : _notificationCallbacks) {
callback->onActiveInterfaceChange(prevActiveInterface, currentActiveinterface);
}
Expand All @@ -611,6 +617,11 @@ namespace WPEFramework
// Start the connectivity monitor with 'true' to indicate the interface is up.
// The monitor will conntinoue even after no internet retry completed, Exit when fully connectd.
connectivityMonitor.startConnectivityMonitor();
// if ipaddress is aquired means there should be interface connected
if(interface == "eth0")
m_ethConnected = true;
else if (interface == "wlan0")
m_wlanConnected = true;
}

_notificationLock.Lock();
Expand Down
Loading