From 118f7caff91e20e3078528e1a3e894e5bae85755 Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Wed, 4 Mar 2026 15:24:22 +0530 Subject: [PATCH 1/9] Update hostIf_WiFi_ReqHandler.cpp --- .../handlers/src/hostIf_WiFi_ReqHandler.cpp | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/hostif/handlers/src/hostIf_WiFi_ReqHandler.cpp b/src/hostif/handlers/src/hostIf_WiFi_ReqHandler.cpp index 1b4be8168..7a6add5bb 100644 --- a/src/hostif/handlers/src/hostIf_WiFi_ReqHandler.cpp +++ b/src/hostif/handlers/src/hostIf_WiFi_ReqHandler.cpp @@ -327,6 +327,39 @@ int WiFiReqHandler::handleGetMsg(HOSTIF_MsgData_t *stMsgData) } ret = pIface->get_Device_WiFi_EnableWiFi(stMsgData); } + + else if (matchComponent(stMsgData->paramName, "Device.WiFi.Radio", &pSetting, instanceNum)) + { + if ((instanceNum <= 0) || (instanceNum > maxRadioInstances)) + { + return NOK; + } + + stMsgData->instanceNum = instanceNum; + hostIf_WiFi_Radio *pWifiRadio = hostIf_WiFi_Radio::getInstance(stMsgData->instanceNum); + hostIf_WiFi_Radio_Stats *pWifiRadioStats = hostIf_WiFi_Radio_Stats::getInstance(stMsgData->instanceNum); + + if ((!pWifiRadio) || (!pWifiRadioStats)) + { + return NOK; + } + else if (strcasecmp(pSetting,"OperatingChannelBandwidth") == 0) + { + ret = pWifiRadio->get_Device_WiFi_Radio_OperatingChannelBandwidth(stMsgData,radioIndex); + } + + else if (strcasecmp(pSetting,"Stats.DiscardPacketsReceived") == 0) + { + ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_DiscardPacketsReceived(stMsgData,radioIndex); + } + else if (strcasecmp(pSetting,"Stats.Noise") == 0) + { + ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_NoiseFloor(stMsgData,radioIndex); + } + } + + + #ifdef RDKV_TR69 else if (matchComponent(stMsgData->paramName, "Device.WiFi.Radio", &pSetting, instanceNum)) { From f9c91ed954ebcead46f3f2009540e1782384a43e Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Wed, 4 Mar 2026 15:28:22 +0530 Subject: [PATCH 2/9] Update Device_WiFi_Radio.cpp --- src/hostif/profiles/wifi/Device_WiFi_Radio.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/hostif/profiles/wifi/Device_WiFi_Radio.cpp b/src/hostif/profiles/wifi/Device_WiFi_Radio.cpp index affca9375..3a55a4cd1 100644 --- a/src/hostif/profiles/wifi/Device_WiFi_Radio.cpp +++ b/src/hostif/profiles/wifi/Device_WiFi_Radio.cpp @@ -532,4 +532,15 @@ int hostIf_WiFi_Radio::get_Device_WiFi_Radio_RegulatoryDomain(HOSTIF_MsgData_t * } #endif +int hostIf_WiFi_Radio::get_Device_WiFi_Radio_OperatingChannelBandwidth(HOSTIF_MsgData_t *stMsgData,int radioIndex ) +{ + RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__); + checkWifiRadioFetch(radioIndex); + strncpy(stMsgData->paramValue, OperatingChannelBandwidth,TR69HOSTIFMGR_MAX_PARAM_LEN); + stMsgData->paramtype = hostIf_StringType; + stMsgData->paramLen = strlen(OperatingChannelBandwidth); + RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Exiting..\n", __FUNCTION__, __FILE__); + return OK; +} + #endif /* #ifdef USE_WIFI_PROFILE */ From f63731d86cc16f3907f07c87105dad55ba5d7b58 Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Wed, 4 Mar 2026 17:44:13 +0530 Subject: [PATCH 3/9] Update hostIf_WiFi_ReqHandler.cpp --- .../handlers/src/hostIf_WiFi_ReqHandler.cpp | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/hostif/handlers/src/hostIf_WiFi_ReqHandler.cpp b/src/hostif/handlers/src/hostIf_WiFi_ReqHandler.cpp index 7a6add5bb..e6200bfb3 100644 --- a/src/hostif/handlers/src/hostIf_WiFi_ReqHandler.cpp +++ b/src/hostif/handlers/src/hostIf_WiFi_ReqHandler.cpp @@ -255,9 +255,9 @@ int WiFiReqHandler::handleGetMsg(HOSTIF_MsgData_t *stMsgData) const char *pSetting; const int maxSSID_Instances = 1; int instanceNum = 0; + int radioIndex = 1; #ifdef RDKV_TR69 const int maxRadioInstances = 1; - int radioIndex = 1; if (strcasecmp(stMsgData->paramName,"Device.WiFi.RadioNumberOfEntries") == 0) { stMsgData->instanceNum = maxRadioInstances; @@ -327,10 +327,10 @@ int WiFiReqHandler::handleGetMsg(HOSTIF_MsgData_t *stMsgData) } ret = pIface->get_Device_WiFi_EnableWiFi(stMsgData); } - - else if (matchComponent(stMsgData->paramName, "Device.WiFi.Radio", &pSetting, instanceNum)) + #ifndef RDKV_TR69 + else if (matchComponent(stMsgData->paramName, "Device.WiFi.Radio", &pSetting, instanceNum)) { - if ((instanceNum <= 0) || (instanceNum > maxRadioInstances)) + if (instanceNum != 1) { return NOK; } @@ -343,23 +343,27 @@ int WiFiReqHandler::handleGetMsg(HOSTIF_MsgData_t *stMsgData) { return NOK; } - else if (strcasecmp(pSetting,"OperatingChannelBandwidth") == 0) + + if (strcasecmp(pSetting,"OperatingChannelBandwidth") == 0) { ret = pWifiRadio->get_Device_WiFi_Radio_OperatingChannelBandwidth(stMsgData,radioIndex); } - - else if (strcasecmp(pSetting,"Stats.DiscardPacketsReceived") == 0) + else if (strcasecmp(pSetting,"Stats.PacketsReceived") == 0) { - ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_DiscardPacketsReceived(stMsgData,radioIndex); + ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_PacketsReceived(stMsgData,radioIndex); } else if (strcasecmp(pSetting,"Stats.Noise") == 0) { ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_NoiseFloor(stMsgData,radioIndex); } - } - - - + else + { + RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->paramName); + stMsgData->faultCode = fcInvalidParameterName; + ret = NOK; + } + } + #endif #ifdef RDKV_TR69 else if (matchComponent(stMsgData->paramName, "Device.WiFi.Radio", &pSetting, instanceNum)) { From 3a105c30c1754f027656bae966c98c68ad66b84e Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Wed, 4 Mar 2026 17:45:57 +0530 Subject: [PATCH 4/9] Update Device_WiFi_Radio_Stats.cpp --- .../profiles/wifi/Device_WiFi_Radio_Stats.cpp | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/src/hostif/profiles/wifi/Device_WiFi_Radio_Stats.cpp b/src/hostif/profiles/wifi/Device_WiFi_Radio_Stats.cpp index 5fa032b7f..290a4a005 100644 --- a/src/hostif/profiles/wifi/Device_WiFi_Radio_Stats.cpp +++ b/src/hostif/profiles/wifi/Device_WiFi_Radio_Stats.cpp @@ -44,9 +44,7 @@ extern "C" { #endif GHashTable* hostIf_WiFi_Radio_Stats::ifHash = NULL; -#ifdef RDKV_NM static time_t radioFirstExTime = 0; -#endif hostIf_WiFi_Radio_Stats *hostIf_WiFi_Radio_Stats::getInstance(int dev_id) { @@ -119,9 +117,9 @@ hostIf_WiFi_Radio_Stats::hostIf_WiFi_Radio_Stats(int dev_id): } -#ifdef RDKV_NM int hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_Props_Fields(int radioIndex) { +#ifdef RDKV_NM IARM_Result_t retVal = IARM_RESULT_SUCCESS; IARM_BUS_WiFi_DiagsPropParam_t param = {0}; int ret; @@ -153,6 +151,21 @@ int hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_Props_Fields(int radioI RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%s]Error! Unable to connect to wifi instance\n", __FILE__, __FUNCTION__); return NOK; } +#else + hostIf_WiFi_Radio_Stats *pDev = hostIf_WiFi_Radio_Stats::getInstance(dev_id); + if(pDev) + { + PacketsReceived = 65568; + NoiseFloor = -100; + radioFirstExTime = time (NULL); + return OK; + } + else + { + RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%s]Error! Unable to connect to wifi instance\n", __FILE__, __FUNCTION__); + return NOK; + } +#endif } @@ -170,6 +183,8 @@ void hostIf_WiFi_Radio_Stats::checkWifiRadioPropsFetch(int radioIndex) } } +#ifdef RDKV_NM + int hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_BytesSent(HOSTIF_MsgData_t *stMsgData,int radioIndex ) { RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__); @@ -205,6 +220,8 @@ int hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_PacketsSent(HOSTIF_MsgD return OK; } +#endif + int hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_PacketsReceived(HOSTIF_MsgData_t *stMsgData,int radioIndex ) { RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__); @@ -216,6 +233,8 @@ int hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_PacketsReceived(HOSTIF_ return OK; } +#ifdef RDKV_NM + int hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_ErrorsSent(HOSTIF_MsgData_t *stMsgData,int radioIndex ) { RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__); @@ -259,6 +278,9 @@ int hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_DiscardPacketsReceived( RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Exiting..\n", __FUNCTION__, __FILE__); return OK; } + +#endif + int hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_NoiseFloor(HOSTIF_MsgData_t *stMsgData,int radioIndex ) { RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__); @@ -269,6 +291,5 @@ int hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_NoiseFloor(HOSTIF_MsgDa RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Exiting..\n", __FUNCTION__, __FILE__); return OK; } -#endif #endif /* #ifdef USE_WIFI_PROFILE */ From 809e540243e93482f3c488082e423ac16608c8ea Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Wed, 4 Mar 2026 17:46:39 +0530 Subject: [PATCH 5/9] Update Device_WiFi_Radio_Stats.h --- src/hostif/profiles/wifi/Device_WiFi_Radio_Stats.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hostif/profiles/wifi/Device_WiFi_Radio_Stats.h b/src/hostif/profiles/wifi/Device_WiFi_Radio_Stats.h index 876286d76..97cdd3c09 100644 --- a/src/hostif/profiles/wifi/Device_WiFi_Radio_Stats.h +++ b/src/hostif/profiles/wifi/Device_WiFi_Radio_Stats.h @@ -76,10 +76,8 @@ class hostIf_WiFi_Radio_Stats { static GList* getAllAssociateDevs(); static void closeInstance(hostIf_WiFi_Radio_Stats *); static void closeAllInstances(); - #ifdef RDKV_NM int get_Device_WiFi_Radio_Stats_Props_Fields(int radioIndex); void checkWifiRadioPropsFetch(int radioIndex); - #endif unsigned long BytesSent; unsigned long BytesReceived; @@ -89,7 +87,7 @@ class hostIf_WiFi_Radio_Stats { unsigned int ErrorsReceived; unsigned int DiscardPacketsSent; unsigned int DiscardPacketsReceived; - unsigned int NoiseFloor; + int NoiseFloor; /** * @ingroup TR69_HOSTIF_WIFI_RADIO_STAT From 1847417619a482b520f47367ab52b7c102fbf212 Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Wed, 4 Mar 2026 17:47:13 +0530 Subject: [PATCH 6/9] Update Device_WiFi_Radio.cpp --- .../profiles/wifi/Device_WiFi_Radio.cpp | 34 ++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/src/hostif/profiles/wifi/Device_WiFi_Radio.cpp b/src/hostif/profiles/wifi/Device_WiFi_Radio.cpp index 3a55a4cd1..14b677755 100644 --- a/src/hostif/profiles/wifi/Device_WiFi_Radio.cpp +++ b/src/hostif/profiles/wifi/Device_WiFi_Radio.cpp @@ -155,9 +155,10 @@ hostIf_WiFi_Radio::hostIf_WiFi_Radio(int dev_id): memset(TransmitPowerSupported, 0, sizeof(TransmitPowerSupported)); memset(RegulatoryDomain, 0, sizeof(RegulatoryDomain)); } -#ifdef RDKV_NM + int hostIf_WiFi_Radio::get_Device_WiFi_Radio_Props_Fields(int radioIndex) { +#ifdef RDKV_NM IARM_Result_t retVal = IARM_RESULT_SUCCESS; IARM_BUS_WiFi_DiagsPropParam_t param = {0}; int ret; @@ -208,6 +209,20 @@ int hostIf_WiFi_Radio::get_Device_WiFi_Radio_Props_Fields(int radioIndex) RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%s]Error! Unable to connect to wifi instance\n", __FILE__, __FUNCTION__); return NOK; } +#else + hostIf_WiFi_Radio *pDev = hostIf_WiFi_Radio::getInstance(dev_id); + if(pDev) + { + snprintf(OperatingChannelBandwidth,BUFF_MIN_16,"80MHz"); + radioFirstExTime = time (NULL); + return OK; + } + else + { + RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%s]Error! Unable to connect to wifi instance\n", __FILE__, __FUNCTION__); + return NOK; + } +#endif } void hostIf_WiFi_Radio::checkWifiRadioFetch(int radioIndex) @@ -224,6 +239,8 @@ void hostIf_WiFi_Radio::checkWifiRadioFetch(int radioIndex) } } +#ifdef RDKV_NM + int hostIf_WiFi_Radio::get_Device_WiFi_Radio_Enable(HOSTIF_MsgData_t *stMsgData,int radioIndex ) { @@ -465,6 +482,8 @@ int hostIf_WiFi_Radio::get_Device_WiFi_Radio_ChannelsInUse(HOSTIF_MsgData_t *stM return OK; } +#endif + int hostIf_WiFi_Radio::get_Device_WiFi_Radio_OperatingChannelBandwidth(HOSTIF_MsgData_t *stMsgData,int radioIndex ) { RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__); @@ -476,6 +495,8 @@ int hostIf_WiFi_Radio::get_Device_WiFi_Radio_OperatingChannelBandwidth(HOSTIF_Ms return OK; } +#ifdef RDKV_NM + int hostIf_WiFi_Radio::get_Device_WiFi_Radio_ExtensionChannel(HOSTIF_MsgData_t *stMsgData,int radioIndex ) { RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__); @@ -532,15 +553,4 @@ int hostIf_WiFi_Radio::get_Device_WiFi_Radio_RegulatoryDomain(HOSTIF_MsgData_t * } #endif -int hostIf_WiFi_Radio::get_Device_WiFi_Radio_OperatingChannelBandwidth(HOSTIF_MsgData_t *stMsgData,int radioIndex ) -{ - RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__); - checkWifiRadioFetch(radioIndex); - strncpy(stMsgData->paramValue, OperatingChannelBandwidth,TR69HOSTIFMGR_MAX_PARAM_LEN); - stMsgData->paramtype = hostIf_StringType; - stMsgData->paramLen = strlen(OperatingChannelBandwidth); - RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Exiting..\n", __FUNCTION__, __FILE__); - return OK; -} - #endif /* #ifdef USE_WIFI_PROFILE */ From 9d11f79075893f941ec70f4e045d177cf8cd7da8 Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Wed, 4 Mar 2026 17:47:40 +0530 Subject: [PATCH 7/9] Update Device_WiFi_Radio.h --- src/hostif/profiles/wifi/Device_WiFi_Radio.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/hostif/profiles/wifi/Device_WiFi_Radio.h b/src/hostif/profiles/wifi/Device_WiFi_Radio.h index 348bb690b..340a547a8 100644 --- a/src/hostif/profiles/wifi/Device_WiFi_Radio.h +++ b/src/hostif/profiles/wifi/Device_WiFi_Radio.h @@ -118,10 +118,8 @@ class hostIf_WiFi_Radio { static GList* getAllAssociateDevs(); static void closeInstance(hostIf_WiFi_Radio *); static void closeAllInstances(); - #ifdef RDKV_NM int get_Device_WiFi_Radio_Props_Fields(int radioIndex); void checkWifiRadioFetch(int radioIndex); - #endif bool Enable; char Status[BUFF_LENGTH_64]; char Alias[BUFF_LENGTH_64]; From 97a3560e6bb3371a29ee9612ba3079d06ff83904 Mon Sep 17 00:00:00 2001 From: Vismal S Kumar Date: Wed, 4 Mar 2026 18:03:33 +0530 Subject: [PATCH 8/9] Update dsVideoDeviceTypes.h --- src/unittest/stubs/dsVideoDeviceTypes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unittest/stubs/dsVideoDeviceTypes.h b/src/unittest/stubs/dsVideoDeviceTypes.h index ff63232d1..550544ab9 100644 --- a/src/unittest/stubs/dsVideoDeviceTypes.h +++ b/src/unittest/stubs/dsVideoDeviceTypes.h @@ -1,3 +1,4 @@ + /* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: From aba887f58f19bd104770a33b78da607d970bd5a8 Mon Sep 17 00:00:00 2001 From: Abhinav P V Date: Wed, 4 Mar 2026 13:04:29 +0000 Subject: [PATCH 9/9] dml --- .../waldb/data-model/data-model-generic.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml b/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml index e41e5a36a..2bc01012a 100755 --- a/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml +++ b/src/hostif/parodusClient/waldb/data-model/data-model-generic.xml @@ -63,6 +63,25 @@ + + + + + + + + + + + + + + + + + + +