From ec9d27aaf5118dc5ad4a670faedddeffdf0d6c46 Mon Sep 17 00:00:00 2001 From: cmuhammedrafi Date: Tue, 26 Nov 2024 08:12:28 +0000 Subject: [PATCH] Initiaial connection check added --- NetworkManagerRDKProxy.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NetworkManagerRDKProxy.cpp b/NetworkManagerRDKProxy.cpp index 9ce9f625..219d2c60 100644 --- a/NetworkManagerRDKProxy.cpp +++ b/NetworkManagerRDKProxy.cpp @@ -584,7 +584,7 @@ namespace WPEFramework { // check the connection state and post event Exchange::INetworkManager::IInterfaceDetailsIterator* _interfaces{}; - uint32_t rc = GetAvailableInterfaces(_interfaces); + uint32_t rc = ::_instance->GetAvailableInterfaces(_interfaces); if (Core::ERROR_NONE == rc) { @@ -600,16 +600,16 @@ namespace WPEFramework // ::_instance->ReportInterfaceStateChange(Exchange::INetworkManager::INTERFACE_ADDED, iface.name); if(iface.connected) { - NMLOG_INFO("'%s' interface is connected", iface.name); + NMLOG_INFO("'%s' interface is connected", iface.name.c_str()); ::_instance->ReportActiveInterfaceChange("unknown", iface.name); std::string ipversion = {}; Exchange::INetworkManager::IPAddress addr; - rc = GetIPSettings(iface.name, ipversion, addr); + rc = ::_instance->GetIPSettings(iface.name, ipversion, addr); if (Core::ERROR_NONE == rc) { if(!addr.ipaddress.empty()) { - NMLOG_INFO("'%s' interface have ip '%s'", iface.name, addr.ipaddress); - ReportIPAddressChange(iface.name, addr.ipversion, addr.ipaddress, Exchange::INetworkManager::IP_ACQUIRED); + NMLOG_INFO("'%s' interface have ip '%s'", iface.name.c_str(), addr.ipaddress.c_str()); + ::_instance->ReportIPAddressChange(iface.name, addr.ipversion, addr.ipaddress, Exchange::INetworkManager::IP_ACQUIRED); } } }