Skip to content

Commit

Permalink
RDKBDEV-2852 : Fix for unable to set Device.DSL.Line.1.Enable to false.
Browse files Browse the repository at this point in the history
Reason for change:
Corrected the Index number and value during Setting of Device.DSL.Line.1.Enable.

Test Procedure: Setting Device.DSL.Line.1.Enable should bring the
                interface up when true and down when false.
Risks: None.
Signed-off-by: K Sanjay Nayak <[email protected]>
  • Loading branch information
sanjaynayakk committed Nov 6, 2024
1 parent a81e9eb commit 8cbe868
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 150 deletions.
5 changes: 4 additions & 1 deletion source/TR-181/integration_src.shared/xdsl_apis.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,10 @@ ANSC_STATUS DmlXdslLineSetEnable( INT LineIndex, BOOL Enable )

memset(&req_param, 0, sizeof(req_param));
snprintf(req_param.name, sizeof(req_param), XDSL_LINE_ENABLE, LineIndex);
snprintf(req_param.value, sizeof(req_param.value), "%d", Enable);
if ( Enable )
snprintf(req_param.value, sizeof(req_param.value), "%s", "TRUE");
else
snprintf(req_param.value, sizeof(req_param.value), "%s", "FALSE");
req_param.type = PARAM_BOOLEAN;

//Set enable/disable
Expand Down
Loading

0 comments on commit 8cbe868

Please sign in to comment.