Skip to content

Commit

Permalink
RDKTV-25836 : Removed redundant connectivity check cal (rdkcentral#4585)
Browse files Browse the repository at this point in the history
* RDKTV-25836 : Removed redundant connectivity check cal
  • Loading branch information
tabbas651 authored Oct 27, 2023
1 parent fac2272 commit b114535
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 24 deletions.
4 changes: 4 additions & 0 deletions Network/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ All notable changes to this RDK Service will be documented in this file.

* For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README.

## [1.2.3] - 2023-10-23
### Fixed
- Fixed the isConnectedToInternet method to not to call getPublicIP; as they are independent RPCs.

## [1.2.2] - 2023-09-29
### Added
- Implement Thunder Plugin Configuration for Kirkstone builds(CMake-3.20 & above)
Expand Down
27 changes: 4 additions & 23 deletions Network/Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ using namespace std;

#define API_VERSION_NUMBER_MAJOR 1
#define API_VERSION_NUMBER_MINOR 2
#define API_VERSION_NUMBER_PATCH 0
#define API_VERSION_NUMBER_PATCH 3

/* Netsrvmgr Based Macros & Structures */
#define IARM_BUS_NM_SRV_MGR_NAME "NET_SRV_MGR"
Expand Down Expand Up @@ -1200,27 +1200,8 @@ typedef struct _IARM_BUS_NetSrvMgr_Iface_EventData_t {
const PluginHost::ISubSystem::IInternet* internet(subSystem->Get<PluginHost::ISubSystem::IInternet>());
if (nullptr == internet)
{
if (m_ipversion.empty())
{
JsonObject p, r;
getIPSettings(p, r);
}

if (m_publicIPAddress.empty())
{
JsonObject p2, r2;
if (m_ipversion == "IPV6")
p2["ipv6"] = true;
getPublicIP(p2, r2);
}

if (!m_publicIPAddress.empty())
{
subSystem->Set(PluginHost::ISubSystem::INTERNET, this);
LOGWARN("Set INTERNET ISubSystem");
}
else
LOGERR("Connected to Internet, but no publicIP");
subSystem->Set(PluginHost::ISubSystem::INTERNET, this);
LOGWARN("Set INTERNET ISubSystem");
}

subSystem->Release();
Expand Down Expand Up @@ -1263,7 +1244,7 @@ typedef struct _IARM_BUS_NetSrvMgr_Iface_EventData_t {
LOGWARN ("Network plugin not initialised yet returning from %s", __FUNCTION__);
}
returnResponse(result);
}
}

uint32_t Network::setConnectivityTestEndpoints (const JsonObject &parameters, JsonObject &response)
{
Expand Down
2 changes: 1 addition & 1 deletion docs/api/NetworkPlugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<a name="NetworkPlugin"></a>
# NetworkPlugin

**Version: [1.2.2](https://github.com/rdkcentral/rdkservices/blob/main/Network/CHANGELOG.md)**
**Version: [1.2.3](https://github.com/rdkcentral/rdkservices/blob/main/Network/CHANGELOG.md)**

A org.rdk.Network plugin for Thunder framework.

Expand Down

0 comments on commit b114535

Please sign in to comment.