33 #ifdef USE_WIFI_PROFILE
35 #include "hostIf_utils.h"
42 #include "Device_WiFi_EndPoint.h"
43 #include "Device_WiFi_EndPoint_WPS.h"
44 #include "Device_WiFi_EndPoint_Security.h"
45 #include "Device_WiFi_EndPoint_Profile.h"
46 #include "Device_WiFi_EndPoint_Profile_Security.h"
47 #include "Device_WiFi_AccessPoint.h"
48 #include "Device_WiFi_AccessPoint_WPS.h"
49 #include "Device_WiFi_AccessPoint_Security.h"
50 #include "Device_WiFi_AccessPoint_AssociatedDevice.h"
52 #include "Device_WiFi_SSID_Stats.h"
54 #ifdef WIFI_CLIENT_ROAMING
58 WiFiReqHandler* WiFiReqHandler::pInstance = NULL;
59 updateCallback WiFiReqHandler::mUpdateCallback = NULL;
60 int WiFiReqHandler::savedSSIDNumberOfEntries = 0;
61 int WiFiReqHandler::savedRadioNumberOfEntries = 0;
62 int WiFiReqHandler::savedEndPointNumberOfEntries = 0;
63 static bool bfirstInstance=
false;
68 pInstance =
new WiFiReqHandler();
81 bool WiFiReqHandler::init()
83 RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,
"[%s()] WiFi manager Initializing\n", __FUNCTION__);
87 void WiFiReqHandler::reset()
90 savedSSIDNumberOfEntries = 0;
91 savedRadioNumberOfEntries = 0;
92 savedEndPointNumberOfEntries = 0;
105 bool WiFiReqHandler::unInit()
108 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%s] Entering..\n", __FUNCTION__, __FILE__);
109 RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,
"[%s()] WiFi manager Deinitializing. \n", __FUNCTION__);
111 hostIf_WiFi::closeAllInstances();
113 hostIf_WiFi_Radio::closeAllInstances();
114 hostIf_WiFi_Radio_Stats::closeAllInstances();
116 hostIf_WiFi_SSID::closeAllInstances();
117 hostIf_WiFi_SSID_Stats::closeAllInstances();
119 hostIf_WiFi_AccessPoint::closeAllInstances();
120 hostIf_WiFi_AccessPoint_WPS::closeAllInstances();
121 hostIf_WiFi_AccessPoint_Security::closeAllInstances();
122 hostIf_WiFi_AccessPoint_AssociatedDevice::closeAllInstances();
124 hostIf_WiFi_EndPoint::closeAllInstances();
125 hostIf_WiFi_EndPoint_WPS::closeAllInstances();
126 hostIf_WiFi_EndPoint_Security::closeAllInstances();
127 hostIf_WiFi_EndPoint_Profile::closeAllInstances();
128 hostIf_WiFi_EndPoint_Profile_Security::closeAllInstances();
129 #ifdef WIFI_CLIENT_ROAMING
130 hostIf_WiFi_Xrdk_ClientRoaming::closeAllInstances();
133 WiFiDevice::closeAllInstances();
135 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%s] Exiting..\n", __FUNCTION__, __FILE__);
153 int ret = NOT_HANDLED;
157 if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_WiFiEnable") == 0)
159 hostIf_WiFi *pIface = hostIf_WiFi::getInstance (1);
165 ret = pIface->set_Device_WiFi_EnableWiFi(stMsgData);
167 #ifdef WIFI_CLIENT_ROAMING
168 else if(strncasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming",strlen(
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming"))==0)
171 hostIf_WiFi_Xrdk_ClientRoaming* clntRoamInst = hostIf_WiFi_Xrdk_ClientRoaming::getInstance(stMsgData->
instanceNum);
172 if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.Enable") == 0)
174 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_Enable(stMsgData);
176 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PreAssn_BestThresholdLevel") == 0)
178 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PreAssn_BestThresholdLevel(stMsgData);
180 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PreAssn_BestDeltaLevel") == 0)
182 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PreAssn_BestDeltaLevel(stMsgData);
184 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BestDeltaLevelConnected") == 0)
186 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_BestDeltaLevelConnected(stMsgData);
188 else if(strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BestDeltaLevelDisconnected") == 0)
190 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_BestDeltaLevelDisconnected(stMsgData);
192 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_SelfSteerThresholdLevel") == 0)
194 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_SelfSteerThreshold(stMsgData);
196 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_SelfSteerTimeframe") == 0)
198 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_SelfSteerTimeframe(stMsgData);
204 else if(strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_APcontrolThresholdLevel") == 0)
206 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_APcontrolThresholdLevel(stMsgData);
208 else if(strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_APcontrolTimeframe") == 0)
210 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_APcontrolTimeframe(stMsgData);
212 else if(strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.SelfSteer_OverrideEnable") == 0)
214 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_SelfSteerOverride(stMsgData);
216 else if(strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BackOffTime") == 0)
218 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_postAssnBackOffTime(stMsgData);
220 else if(strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.80211kvrEnable") == 0)
222 ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_80211kvrEnable(stMsgData);
226 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->
paramName);
227 stMsgData->
faultCode = fcInvalidParameterName;
234 RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,
"[%s:%s] Found string as %s. Set command not supported.\n", __FUNCTION__, __FILE__, stMsgData->
paramName);
235 stMsgData->
faultCode = fcAttemptToSetaNonWritableParameter;
254 int ret = NOT_HANDLED;
255 const char *pSetting;
256 const int maxRadioInstances = 1;
257 const int maxSSID_Instances = 1;
261 if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.RadioNumberOfEntries") == 0)
264 hostIf_WiFi *pIface = hostIf_WiFi::getInstance(maxRadioInstances);
271 ret = pIface->get_Device_WiFi_RadioNumberOfEntries(stMsgData);
273 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.SSIDNumberOfEntries") == 0)
276 hostIf_WiFi *pIface = hostIf_WiFi::getInstance(maxSSID_Instances);
283 ret = pIface->get_Device_WiFi_SSIDNumberOfEntries(stMsgData);
285 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.AccessPointNumberOfEntries") == 0)
288 hostIf_WiFi *pIface = hostIf_WiFi::getInstance(stMsgData->
instanceNum);
295 ret = pIface->get_Device_WiFi_AccessPointNumberOfEntries(stMsgData);
297 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.EndPointNumberOfEntries") == 0)
299 hostIf_WiFi *pIface = hostIf_WiFi::getInstance (1);
305 ret = pIface->get_Device_WiFi_EndPointNumberOfEntries(stMsgData);
307 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_WiFiEnable") == 0)
309 hostIf_WiFi *pIface = hostIf_WiFi::getInstance (1);
315 ret = pIface->get_Device_WiFi_EnableWiFi(stMsgData);
317 else if (matchComponent(stMsgData->
paramName,
"Device.WiFi.Radio", &pSetting, instanceNum))
319 if ((instanceNum <= 0) || (instanceNum > maxRadioInstances))
328 if ((!pWifiRadio) || (!pWifiRadioStats))
333 if (strcasecmp(pSetting,
"Enable") == 0)
337 else if (strcasecmp(pSetting,
"Status") == 0)
341 else if (strcasecmp(pSetting,
"Alias") == 0)
345 else if (strcasecmp(pSetting,
"Name") == 0)
349 else if (strcasecmp(pSetting,
"LastChange") == 0)
353 else if (strcasecmp(pSetting,
"LowerLayers") == 0)
357 else if (strcasecmp(pSetting,
"Upstream") == 0)
361 else if (strcasecmp(pSetting,
"MaxBitRate") == 0)
365 else if (strcasecmp(pSetting,
"SupportedFrequencyBands") == 0)
369 else if (strcasecmp(pSetting,
"OperatingFrequencyBand") == 0)
373 else if (strcasecmp(pSetting,
"SupportedStandards") == 0)
377 else if (strcasecmp(pSetting,
"OperatingStandards") == 0)
381 else if (strcasecmp(pSetting,
"PossibleChannels") == 0)
385 else if (strcasecmp(pSetting,
"ChannelsInUse") == 0)
389 else if (strcasecmp(pSetting,
"Channel") == 0)
393 else if (strcasecmp(pSetting,
"AutoChannelSupported") == 0)
397 else if (strcasecmp(pSetting,
"AutoChannelEnable") == 0)
401 else if (strcasecmp(pSetting,
"AutoChannelRefreshPeriod") == 0)
403 ret = pWifiRadio->get_Device_WiFi_Radio_AutoChannelRefreshPeriod(stMsgData,radioIndex);
405 else if (strcasecmp(pSetting,
"OperatingChannelBandwidth") == 0)
407 ret = pWifiRadio->get_Device_WiFi_Radio_OperatingChannelBandwidth(stMsgData,radioIndex);
409 else if (strcasecmp(pSetting,
"ExtensionChannel") == 0)
411 ret = pWifiRadio->get_Device_WiFi_Radio_ExtensionChannel(stMsgData,radioIndex);
413 else if (strcasecmp(pSetting,
"GuardInterval") == 0)
415 ret = pWifiRadio->get_Device_WiFi_Radio_GuardInterval(stMsgData,radioIndex);
417 else if (strcasecmp(pSetting,
"MCS") == 0)
419 ret = pWifiRadio->get_Device_WiFi_Radio_MCS(stMsgData,radioIndex);
421 else if (strcasecmp(pSetting,
"MCS") == 0)
423 ret = pWifiRadio->get_Device_WiFi_Radio_MCS(stMsgData,radioIndex);
425 else if (strcasecmp(pSetting,
"TransmitPowerSupported") == 0)
427 ret = pWifiRadio->get_Device_WiFi_Radio_TransmitPowerSupported(stMsgData,radioIndex);
429 else if (strcasecmp(pSetting,
"TransmitPower") == 0)
431 ret = pWifiRadio->get_Device_WiFi_Radio_TransmitPower(stMsgData,radioIndex);
433 else if (strcasecmp(pSetting,
"IEEE80211hSupported") == 0)
435 ret = pWifiRadio->get_Device_WiFi_Radio_IEEE80211hSupported(stMsgData,radioIndex);
437 else if (strcasecmp(pSetting,
"IEEE80211hEnabled") == 0)
439 ret = pWifiRadio->get_Device_WiFi_Radio_IEEE80211hEnabled(stMsgData,radioIndex);
441 else if (strcasecmp(pSetting,
"RegulatoryDomain") == 0)
443 ret = pWifiRadio->get_Device_WiFi_Radio_RegulatoryDomain(stMsgData,radioIndex);
445 else if (strcasecmp(pSetting,
"Stats.BytesSent") == 0)
449 else if (strcasecmp(pSetting,
"Stats.BytesReceived") == 0)
453 else if (strcasecmp(pSetting,
"Stats.PacketsSent") == 0)
457 else if (strcasecmp(pSetting,
"Stats.PacketsReceived") == 0)
461 else if (strcasecmp(pSetting,
"Stats.ErrorsSent") == 0)
465 else if (strcasecmp(pSetting,
"Stats.ErrorsReceived") == 0)
469 else if (strcasecmp(pSetting,
"Stats.DiscardPacketsSent") == 0)
473 else if (strcasecmp(pSetting,
"Stats.DiscardPacketsReceived") == 0)
477 else if (strcasecmp(pSetting,
"Stats.Noise") == 0)
483 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->
paramName);
484 stMsgData->
faultCode = fcInvalidParameterName;
488 else if (matchComponent(stMsgData->
paramName,
"Device.WiFi.Endpoint", &pSetting, instanceNum))
495 if ((!pWifiEndPoint) || (!pWifiEndPointWps) || (!pWifiEndpointSec))
500 if (strcasecmp(pSetting,
"Enable") == 0)
504 else if (strcasecmp(pSetting,
"Status") == 0)
508 else if (strcasecmp(pSetting,
"Alias") == 0)
512 else if (strcasecmp(pSetting,
"ProfileReference") == 0)
516 else if (strcasecmp(pSetting,
"SSIDReference") == 0)
520 else if (strcasecmp(pSetting,
"ProfileNumberOfEntries") == 0)
524 else if (strcasecmp(pSetting,
"Stats.LastDataDownlinkRate") == 0)
528 else if (strcasecmp(pSetting,
"Stats.LastDataUplinkRate") == 0)
532 else if (strcasecmp(pSetting,
"Stats.SignalStrength") == 0)
536 else if (strcasecmp(pSetting,
"Stats.Retransmissions") == 0)
540 else if(strcasecmp(pSetting,
"Security.ModesEnabled") == 0)
546 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->
paramName);
547 stMsgData->
faultCode = fcInvalidParameterName;
552 else if (matchComponent(stMsgData->
paramName,
"Device.WiFi.AccessPoint", &pSetting, instanceNum))
560 if ((!pIfaceAccessPoint) || (!pIfaceAccessPointWps) || (!pIfaceAccessPointSec) || (!pIfaceAccessPointAssDev))
565 else if (matchComponent(stMsgData->
paramName,
"Device.WiFi.SSID", &pSetting, instanceNum))
567 if ((instanceNum <= 0) || (instanceNum > maxSSID_Instances))
573 hostIf_WiFi_SSID *pIfaceSsid = hostIf_WiFi_SSID::getInstance(stMsgData->
instanceNum);
576 if ((!pIfaceSsid) || (!pIfaceSsidStats))
581 if (strcasecmp(pSetting,
"Enable") == 0)
583 ret = pIfaceSsid->get_Device_WiFi_SSID_Enable(stMsgData);
585 else if (strcasecmp(pSetting,
"Status") == 0)
587 ret = pIfaceSsid->get_Device_WiFi_SSID_Status(stMsgData);
589 else if (strcasecmp(pSetting,
"BSSID") == 0)
591 ret = pIfaceSsid->get_Device_WiFi_SSID_BSSID(stMsgData);
593 else if (strcasecmp(pSetting,
"MACAddress") == 0)
595 ret = pIfaceSsid->get_Device_WiFi_SSID_MACAddress(stMsgData);
597 else if (strcasecmp(pSetting,
"SSID") == 0)
599 ret = pIfaceSsid->get_Device_WiFi_SSID_SSID(stMsgData);
601 else if (strcasecmp(pSetting,
"Name") == 0)
603 ret = pIfaceSsid->get_Device_WiFi_SSID_Name(stMsgData);
605 else if (strcasecmp(pSetting,
"Alias") == 0)
607 ret = pIfaceSsid->get_Device_WiFi_SSID_Alias(stMsgData);
611 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->
paramName);
612 stMsgData->
faultCode = fcInvalidParameterName;
617 #ifdef WIFI_CLIENT_ROAMING
618 else if (strncasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming",strlen(
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming")) == 0)
621 hostIf_WiFi_Xrdk_ClientRoaming* clntRoamInst = hostIf_WiFi_Xrdk_ClientRoaming::getInstance(stMsgData->
instanceNum);
622 if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.Enable") == 0)
624 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_Enable(stMsgData);
626 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PreAssn_BestThresholdLevel") == 0)
628 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PreAssn_BestThresholdLevel(stMsgData);
630 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PreAssn_BestDeltaLevel") == 0)
632 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PreAssn_BestDeltaLevel(stMsgData);
634 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.SelfSteer_Override") == 0)
636 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_SelfSteerOverride(stMsgData);
638 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BestDeltaLevelConnected") == 0)
640 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_BestDeltaLevelConnected(stMsgData);
642 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BestDeltaLevelDisconnected") == 0)
644 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_BestDeltaLevelDisconnected(stMsgData);
646 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_SelfSteerThresholdLevel") == 0)
648 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_SelfSteerThreshold(stMsgData);
650 else if (strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_SelfSteerTimeframe") == 0)
652 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_SelfSteerTimeframe(stMsgData);
658 else if(strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_APcontrolThresholdLevel") == 0)
660 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_APcontrolThresholdLevel(stMsgData);
662 else if(strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_APcontrolTimeframe") == 0)
664 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_APcontrolTimeframe(stMsgData);
666 else if(strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.SelfSteer_OverrideEnable") == 0)
668 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_SelfSteerOverride(stMsgData);
670 else if(strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BackOffTime") == 0)
672 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_postAssnBackOffTime(stMsgData);
674 else if(strcasecmp(stMsgData->
paramName,
"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.80211kvrEnable") == 0)
676 ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_80211kvrEnable(stMsgData);
680 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->
paramName);
681 stMsgData->
faultCode = fcInvalidParameterName;
688 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->
paramName);
689 stMsgData->
faultCode = fcInvalidParameterName;
698 int ret = NOT_HANDLED;
699 RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,
"[%s:%s] TODO Entering Parameter value = %s \n", __FILE__, __FUNCTION__,stMsgData->
paramName);
707 int ret = NOT_HANDLED;
736 void WiFiReqHandler::registerUpdateCallback(updateCallback cb)
738 mUpdateCallback = cb;
741 void WiFiReqHandler::checkForUpdates()
745 if (NULL == mUpdateCallback)
747 RDK_LOG (RDK_LOG_ERROR, LOG_TR69HOSTIF,
"[%s:%s] mUpdateCallback is NULL\n", __FILE__, __FUNCTION__);
751 hostIf_WiFi *pIface = hostIf_WiFi::getInstance(1);
754 RDK_LOG (RDK_LOG_ERROR, LOG_TR69HOSTIF,
"[%s:%s] hostIf_WiFi::getInstance(1) returned NULL\n", __FILE__, __FUNCTION__);
760 if (OK == pIface->get_Device_WiFi_SSIDNumberOfEntries(&stMsgData))
762 int currentSSIDNumberOfEntries = get_int (stMsgData.
paramValue);
763 RDK_LOG (RDK_LOG_DEBUG, LOG_TR69HOSTIF,
"[%s:%s] currentSSIDNumberOfEntries = %d, savedSSIDNumberOfEntries = %d\n",
764 __FILE__, __FUNCTION__, currentSSIDNumberOfEntries, savedSSIDNumberOfEntries);
765 sendAddRemoveEvents (mUpdateCallback, currentSSIDNumberOfEntries, savedSSIDNumberOfEntries, (
char *)DEVICE_WIFI_SSID_PROFILE);
768 if (!bfirstInstance && (OK == pIface->get_Device_WiFi_RadioNumberOfEntries (&stMsgData)))
770 bfirstInstance =
true;
771 int currentRadioNumberOfEntries = get_int (stMsgData.
paramValue);
772 RDK_LOG (RDK_LOG_DEBUG, LOG_TR69HOSTIF,
"[%s:%s] currentRadioNumberOfEntries = %d, savedRadioNumberOfEntries = %d\n",
773 __FILE__, __FUNCTION__, currentRadioNumberOfEntries, savedRadioNumberOfEntries);
774 sendAddRemoveEvents (mUpdateCallback, currentRadioNumberOfEntries, savedRadioNumberOfEntries, (
char *)DEVICE_WIFI_RADIO_PROFILE);
777 if (OK == pIface->get_Device_WiFi_EndPointNumberOfEntries (&stMsgData))
779 int currentEndPointNumberOfEntries = get_int (stMsgData.
paramValue);
780 RDK_LOG (RDK_LOG_DEBUG, LOG_TR69HOSTIF,
"[%s:%s] currentEndPointNumberOfEntries = %d, savedEndPointNumberOfEntries = %d\n",
781 __FILE__, __FUNCTION__, currentEndPointNumberOfEntries, savedEndPointNumberOfEntries);
782 sendAddRemoveEvents (mUpdateCallback, currentEndPointNumberOfEntries, savedEndPointNumberOfEntries, (
char *)DEVICE_WIFI_ENDPOINT_PROFILE);