Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDKBDEV-2852 : Fix for unable to set Device.DSL.Line.1.Enable to false. #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion source/TR-181/middle_layer_src/xdsl_dml.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ Line_SetParamBoolValue
{
pXDSLLine->Enable = bValue;
//Process DSL enable set
DmlXdslLineSetEnable( ( pXDSLLine->ulInstanceNumber - 1 ), pXDSLLine->Enable );
DmlXdslLineSetEnable( ( pXDSLLine->ulInstanceNumber ), pXDSLLine->Enable );
}

ret = TRUE;
Expand Down