From 778732aaaabbbb1adf990f263c49b9521603b7ff Mon Sep 17 00:00:00 2001 From: K Sanjay Nayak Date: Thu, 29 Aug 2024 12:04:47 +0000 Subject: [PATCH] RDKBDEV-2883 :Fix for Device.DSL.Channel.%d.Enable is always set to false. Reason for change: Added logic to update the value of Enable from dslhal. Test Procedure: Ensure DM Device.DSL.Channel.%d.Enable DM is in sync with value from dslhal. Risks: None. Signed-off-by: K Sanjay Nayak --- source/TR-181/integration_src.shared/xdsl_hal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/TR-181/integration_src.shared/xdsl_hal.c b/source/TR-181/integration_src.shared/xdsl_hal.c index 8546235..a45ff58 100644 --- a/source/TR-181/integration_src.shared/xdsl_hal.c +++ b/source/TR-181/integration_src.shared/xdsl_hal.c @@ -1782,6 +1782,9 @@ int xdsl_hal_dslGetChannelInfo(int channelNo, PDML_XDSL_CHANNEL pstChannelInfo) pstChannelInfo->Status = XDSL_IF_STATUS_Error; } } + else if (strstr (resp_param.name, "Enable")) { + pstChannelInfo->Enable = atoi(resp_param.value); + } else if (strstr (resp_param.name, "LastChange")) { pstChannelInfo->LastChange = atoi(resp_param.value); }