Skip to content

Commit

Permalink
DELIA-66721 : Fixed the empty interface being returned in GetIPSettin…
Browse files Browse the repository at this point in the history
…gs (rdkcentral#23)

Reason for change: Fixed the empty interface being returned in GetIPSettings
Test Procedure: as per DELIA-66721
Risks: Low
Signed-off-by: Karunakaran A <[email protected]>
  • Loading branch information
karuna2git committed Nov 7, 2024
1 parent 7d453e5 commit 3d3e3ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 0 additions & 2 deletions LegacyPlugin_WiFiManagerAPIs.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ namespace WPEFramework {
uint32_t getPairedSSID(const JsonObject& parameters, JsonObject& response);
uint32_t getPairedSSIDInfo(const JsonObject& parameters, JsonObject& response);
uint32_t isPaired(const JsonObject& parameters, JsonObject& response);
uint32_t setSignalThresholdChangeEnabled(const JsonObject& parameters, JsonObject& response);
uint32_t isSignalThresholdChangeEnabled(const JsonObject& parameters, JsonObject& response);
uint32_t getSupportedSecurityModes(const JsonObject& parameters, JsonObject& response);
//End methods

Expand Down
12 changes: 11 additions & 1 deletion NetworkManagerRDKProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,17 @@ namespace WPEFramework
}

/* Return the default interface information */
interface = string(interface);
if (interface.empty())
{
string tmpInterface = string(iarmData.interface);
if ("ETHERNET" == tmpInterface)
interface = "eth0";
else if ("WIFI" == tmpInterface)
interface = "wlan0";
else
rc = Core::ERROR_BAD_REQUEST;
}

rc = Core::ERROR_NONE;
}
else
Expand Down

0 comments on commit 3d3e3ac

Please sign in to comment.