From 844e18cb516f6960cdbc648907ff319a771c8899 Mon Sep 17 00:00:00 2001 From: gururaajar <83449026+gururaajar@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:23:43 -0500 Subject: [PATCH] DELIA-66893 - GetInterfaceState is not working (#37) Reason for change: GetInterfaceState is using the SetInterfaceState networkmanager implementation call instead of GetInterfaceState call. Modified the same. Test Procedure: Check with curl commands Risks: Low Priority: P1 Signed-off-by: Gururaaja ESR --- NetworkManagerJsonRpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NetworkManagerJsonRpc.cpp b/NetworkManagerJsonRpc.cpp index 8feedf50..5557e498 100644 --- a/NetworkManagerJsonRpc.cpp +++ b/NetworkManagerJsonRpc.cpp @@ -271,7 +271,7 @@ namespace WPEFramework if ("wlan0" != interface && "eth0" != interface) rc = Core::ERROR_BAD_REQUEST; else if (_networkManager) - rc = _networkManager->SetInterfaceState(interface, enabled); + rc = _networkManager->GetInterfaceState(interface, enabled); else rc = Core::ERROR_UNAVAILABLE;