Skip to content

Commit

Permalink
Merge pull request rdkcentral#8 from gururaajar/develop
Browse files Browse the repository at this point in the history
RDKTV-33219, XIONE-15762 - [RDKE] GetIPSettings without input arg is failing
  • Loading branch information
karuna2git authored Sep 19, 2024
2 parents 0465aea + fd9e807 commit e366a6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NetworkManagerJsonRpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ namespace WPEFramework
if (parameters.HasLabel("ipversion"))
ipversion = parameters["ipversion"].String();

if ("wlan0" != interface && "eth0" != interface)
if (!interface.empty() && ("wlan0" != interface) && ("eth0" != interface))
{
rc = Core::ERROR_BAD_REQUEST;
return rc;
Expand Down
2 changes: 1 addition & 1 deletion docs/NetworkManagerPlugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ No Events
| Name | Type | Description |
| :-------- | :-------- | :-------- |
| params | object | |
| params.interface | string | An interface, such as `eth0` or `wlan0`, depending upon availability of the given interface |
| params.interface | string | <sup>*(optional)*</sup> An interface, such as `eth0` or `wlan0`, depending upon availability of the given interface. If this is empty, default interface will be returned |
| params?.ipversion | string | <sup>*(optional)*</sup> either IPv4 or IPv6 |

### Result
Expand Down

0 comments on commit e366a6a

Please sign in to comment.