diff --git a/source/TR-181/integration_src.shared/xdsl_apis.c b/source/TR-181/integration_src.shared/xdsl_apis.c index ccb322b..72c7276 100644 --- a/source/TR-181/integration_src.shared/xdsl_apis.c +++ b/source/TR-181/integration_src.shared/xdsl_apis.c @@ -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 diff --git a/source/TR-181/middle_layer_src/xdsl_dml.c b/source/TR-181/middle_layer_src/xdsl_dml.c index fa3ff7c..b503df1 100644 --- a/source/TR-181/middle_layer_src/xdsl_dml.c +++ b/source/TR-181/middle_layer_src/xdsl_dml.c @@ -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;