Skip to content

Commit

Permalink
Merge branch 'rdkcentral:develop' into release/unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
parvathika authored Dec 20, 2024
2 parents 5f7efac + 2b93fa7 commit 35457a6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
* @rdkcentral/networkmanager-maintainers
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

0 comments on commit 35457a6

Please sign in to comment.