RDK Documentation (Open Sourced RDK Components)
hostIf_WiFi_ReqHandler.cpp
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 /**
21  * @file hostIf_WiFi_ReqHandler.cpp
22  * @brief The header file provides HostIf IP WiFi request handler information APIs.
23  */
24 
25 /**
26 * @defgroup tr69hostif
27 * @{
28 * @defgroup hostif
29 * @{
30 **/
31 
32 
33 #ifdef USE_WIFI_PROFILE
34 #include "hostIf_main.h"
35 #include "hostIf_utils.h"
36 #include "hostIf_msgHandler.h"
37 
38 #include "hostIf_WiFi_ReqHandler.h"
39 #include "Device_WiFi.h"
40 #include "Device_WiFi_Radio.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"
51 #include "Device_WiFi_SSID.h"
52 #include "Device_WiFi_SSID_Stats.h"
53 
54 #ifdef WIFI_CLIENT_ROAMING
56 #endif
57 
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;
64 
65 msgHandler* WiFiReqHandler::getInstance()
66 {
67  if(!pInstance)
68  pInstance = new WiFiReqHandler();
69  return pInstance;
70 }
71 
72 /**
73  * @brief This function is use to initialize. Currently not implemented.
74  *
75  * @return Returns the status of the operation.
76  *
77  * @retval true if initialization is successfully .
78  * @retval false if initialization is not successful.
79  * @ingroup TR-069HOSTIF_WIFI_REQHANDLER_CLASSES
80  */
81 bool WiFiReqHandler::init()
82 {
83  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s()] WiFi manager Initializing\n", __FUNCTION__);
84  return true;
85 }
86 
87 void WiFiReqHandler::reset()
88 {
89  bfirstInstance=false;
90  savedSSIDNumberOfEntries = 0;
91  savedRadioNumberOfEntries = 0;
92  savedEndPointNumberOfEntries = 0;
93 }
94 
95 /**
96  * @brief This function is used to close all the instances of WiFi, WiFi Radio,
97  * SSID, AccessPoint, EndPoint etc..
98  *
99  * @return Returns the status of the operation.
100  *
101  * @retval true if it is successfully close all the instances.
102  * @retval false if not able to close all the instances.
103  * @ingroup TR-069HOSTIF_WIFI_REQHANDLER_CLASSES
104  */
105 bool WiFiReqHandler::unInit()
106 {
107 
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__);
110 
111  hostIf_WiFi::closeAllInstances();
112 
113  hostIf_WiFi_Radio::closeAllInstances();
114  hostIf_WiFi_Radio_Stats::closeAllInstances();
115 
116  hostIf_WiFi_SSID::closeAllInstances();
117  hostIf_WiFi_SSID_Stats::closeAllInstances();
118 
119  hostIf_WiFi_AccessPoint::closeAllInstances();
120  hostIf_WiFi_AccessPoint_WPS::closeAllInstances();
121  hostIf_WiFi_AccessPoint_Security::closeAllInstances();
122  hostIf_WiFi_AccessPoint_AssociatedDevice::closeAllInstances();
123 
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();
131 #endif
132 
133  WiFiDevice::closeAllInstances();
134 
135  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Exiting..\n", __FUNCTION__, __FILE__);
136  return true;
137 }
138 
139 /**
140  * @brief This function use to handle the set message request of WiFi.
141  * Currently not implemented.
142  *
143  * @param[out] stMsgData TR-069 Host interface message request.
144  *
145  * @return Returns the status of the operation.
146  *
147  * @retval OK if it is successfully.
148  * @retval ERR_INTERNAL_ERROR if not able to set the data to the device.
149  * @ingroup TR-069HOSTIF_WIFI_REQHANDLER_CLASSES
150  */
151 int WiFiReqHandler::handleSetMsg(HOSTIF_MsgData_t *stMsgData)
152 {
153  int ret = NOT_HANDLED;
154 /* RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,"[%s:%s] Found string as %s. Set command not supported.\n",
155  __FUNCTION__, __FILE__, stMsgData->paramName);
156  stMsgData->faultCode = fcAttemptToSetaNonWritableParameter;*/
157  if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_WiFiEnable") == 0)
158  {
159  hostIf_WiFi *pIface = hostIf_WiFi::getInstance (1);
160 
161  if(!pIface)
162  {
163  return NOK;
164  }
165  ret = pIface->set_Device_WiFi_EnableWiFi(stMsgData);
166  }
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)
169  {
170  //Setting Roaming params
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)
173  {
174  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_Enable(stMsgData);
175  }
176  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PreAssn_BestThresholdLevel") == 0)
177  {
178  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PreAssn_BestThresholdLevel(stMsgData);
179  }
180  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PreAssn_BestDeltaLevel") == 0)
181  {
182  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PreAssn_BestDeltaLevel(stMsgData);
183  }
184  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BestDeltaLevelConnected") == 0)
185  {
186  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_BestDeltaLevelConnected(stMsgData);
187  }
188  else if(strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BestDeltaLevelDisconnected") == 0)
189  {
190  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_BestDeltaLevelDisconnected(stMsgData);
191  }
192  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_SelfSteerThresholdLevel") == 0)
193  {
194  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_SelfSteerThreshold(stMsgData);
195  }
196  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_SelfSteerTimeframe") == 0)
197  {
198  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_SelfSteerTimeframe(stMsgData);
199  }
200  /* else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_SelfSteerBeaconsMissedTime") == 0)
201  {
202  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_SelfSteerBeaconsMissedTime(stMsgData);
203  }*/
204  else if(strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_APcontrolThresholdLevel") == 0)
205  {
206  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_APcontrolThresholdLevel(stMsgData);
207  }
208  else if(strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_APcontrolTimeframe") == 0)
209  {
210  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_APcontrolTimeframe(stMsgData);
211  }
212  else if(strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.SelfSteer_OverrideEnable") == 0)
213  {
214  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_SelfSteerOverride(stMsgData);
215  }
216  else if(strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BackOffTime") == 0)
217  {
218  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_postAssnBackOffTime(stMsgData);
219  }
220  else if(strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.80211kvrEnable") == 0)
221  {
222  ret = clntRoamInst->set_Device_WiFi_X_Rdkcentral_clientRoaming_80211kvrEnable(stMsgData);
223  }
224  else
225  {
226  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->paramName);
227  stMsgData->faultCode = fcInvalidParameterName;
228  ret = NOK;
229  }
230  }
231 #endif
232  else
233  {
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;
236  }
237  return ret;
238 }
239 
240 /**
241  * @brief This function use to handle the get message request of WiFi interface
242  * and get the attributes of "Radio", "SSID", "AccessPoint", "Endpoint" etc.
243  *
244  * @param[out] stMsgData TR-069 Host interface message request.
245  *
246  * @return Returns the status of the operation.
247  *
248  * @retval OK if it is successfully.
249  * @retval ERR_INTERNAL_ERROR if not able to get data from the device.
250  * @ingroup TR-069HOSTIF_WIFI_REQHANDLER_CLASSES
251  */
252 int WiFiReqHandler::handleGetMsg(HOSTIF_MsgData_t *stMsgData)
253 {
254  int ret = NOT_HANDLED;
255  const char *pSetting;
256  const int maxRadioInstances = 1;
257  const int maxSSID_Instances = 1;
258  int instanceNum = 0;
259  int radioIndex = 1;
260 
261  if (strcasecmp(stMsgData->paramName,"Device.WiFi.RadioNumberOfEntries") == 0)
262  {
263  stMsgData->instanceNum = maxRadioInstances;
264  hostIf_WiFi *pIface = hostIf_WiFi::getInstance(maxRadioInstances);
265 
266  if(!pIface)
267  {
268  return NOK;
269  }
270 
271  ret = pIface->get_Device_WiFi_RadioNumberOfEntries(stMsgData);
272  }
273  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.SSIDNumberOfEntries") == 0)
274  {
275  stMsgData->instanceNum = maxSSID_Instances;
276  hostIf_WiFi *pIface = hostIf_WiFi::getInstance(maxSSID_Instances);
277 
278  if(!pIface)
279  {
280  return NOK;
281  }
282 
283  ret = pIface->get_Device_WiFi_SSIDNumberOfEntries(stMsgData);
284  }
285  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.AccessPointNumberOfEntries") == 0)
286  {
287  stMsgData->instanceNum = 0;
288  hostIf_WiFi *pIface = hostIf_WiFi::getInstance(stMsgData->instanceNum);
289 
290  if(!pIface)
291  {
292  return NOK;
293  }
294 
295  ret = pIface->get_Device_WiFi_AccessPointNumberOfEntries(stMsgData);
296  }
297  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.EndPointNumberOfEntries") == 0)
298  {
299  hostIf_WiFi *pIface = hostIf_WiFi::getInstance (1);
300 
301  if(!pIface)
302  {
303  return NOK;
304  }
305  ret = pIface->get_Device_WiFi_EndPointNumberOfEntries(stMsgData);
306  }
307  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_WiFiEnable") == 0)
308  {
309  hostIf_WiFi *pIface = hostIf_WiFi::getInstance (1);
310 
311  if(!pIface)
312  {
313  return NOK;
314  }
315  ret = pIface->get_Device_WiFi_EnableWiFi(stMsgData);
316  }
317  else if (matchComponent(stMsgData->paramName, "Device.WiFi.Radio", &pSetting, instanceNum))
318  {
319  if ((instanceNum <= 0) || (instanceNum > maxRadioInstances))
320  {
321  return NOK;
322  }
323 
324  stMsgData->instanceNum = instanceNum;
325  hostIf_WiFi_Radio *pWifiRadio = hostIf_WiFi_Radio::getInstance(stMsgData->instanceNum);
326  hostIf_WiFi_Radio_Stats *pWifiRadioStats = hostIf_WiFi_Radio_Stats::getInstance(stMsgData->instanceNum);
327 
328  if ((!pWifiRadio) || (!pWifiRadioStats))
329  {
330  return NOK;
331  }
332 
333  if (strcasecmp(pSetting,"Enable") == 0)
334  {
335  ret = pWifiRadio->get_Device_WiFi_Radio_Enable(stMsgData,radioIndex);
336  }
337  else if (strcasecmp(pSetting,"Status") == 0)
338  {
339  ret = pWifiRadio->get_Device_WiFi_Radio_Status(stMsgData,radioIndex);
340  }
341  else if (strcasecmp(pSetting,"Alias") == 0)
342  {
343  ret = pWifiRadio->get_Device_WiFi_Radio_Alias(stMsgData,radioIndex);
344  }
345  else if (strcasecmp(pSetting,"Name") == 0)
346  {
347  ret = pWifiRadio->get_Device_WiFi_Radio_Name(stMsgData,radioIndex);
348  }
349  else if (strcasecmp(pSetting,"LastChange") == 0)
350  {
351  ret = pWifiRadio->get_Device_WiFi_Radio_LastChange(stMsgData,radioIndex);
352  }
353  else if (strcasecmp(pSetting,"LowerLayers") == 0)
354  {
355  ret = pWifiRadio->get_Device_WiFi_Radio_LowerLayers(stMsgData,radioIndex);
356  }
357  else if (strcasecmp(pSetting,"Upstream") == 0)
358  {
359  ret = pWifiRadio->get_Device_WiFi_Radio_Upstream(stMsgData,radioIndex);
360  }
361  else if (strcasecmp(pSetting,"MaxBitRate") == 0)
362  {
363  ret = pWifiRadio->get_Device_WiFi_Radio_MaxBitRate(stMsgData,radioIndex);
364  }
365  else if (strcasecmp(pSetting,"SupportedFrequencyBands") == 0)
366  {
367  ret = pWifiRadio->get_Device_WiFi_Radio_SupportedFrequencyBands(stMsgData,radioIndex);
368  }
369  else if (strcasecmp(pSetting,"OperatingFrequencyBand") == 0)
370  {
371  ret = pWifiRadio->get_Device_WiFi_Radio_OperatingFrequencyBand(stMsgData,radioIndex);
372  }
373  else if (strcasecmp(pSetting,"SupportedStandards") == 0)
374  {
375  ret = pWifiRadio->get_Device_WiFi_Radio_SupportedStandards(stMsgData,radioIndex);
376  }
377  else if (strcasecmp(pSetting,"OperatingStandards") == 0)
378  {
379  ret = pWifiRadio->get_Device_WiFi_Radio_OperatingStandards(stMsgData,radioIndex);
380  }
381  else if (strcasecmp(pSetting,"PossibleChannels") == 0)
382  {
383  ret = pWifiRadio->get_Device_WiFi_Radio_PossibleChannels(stMsgData,radioIndex);
384  }
385  else if (strcasecmp(pSetting,"ChannelsInUse") == 0)
386  {
387  ret = pWifiRadio->get_Device_WiFi_Radio_ChannelsInUse(stMsgData,radioIndex);
388  }
389  else if (strcasecmp(pSetting,"Channel") == 0)
390  {
391  ret = pWifiRadio->get_Device_WiFi_Radio_Channel(stMsgData,radioIndex);
392  }
393  else if (strcasecmp(pSetting,"AutoChannelSupported") == 0)
394  {
395  ret = pWifiRadio->get_Device_WiFi_Radio_AutoChannelSupported(stMsgData,radioIndex);
396  }
397  else if (strcasecmp(pSetting,"AutoChannelEnable") == 0)
398  {
399  ret = pWifiRadio->get_Device_WiFi_Radio_AutoChannelEnable(stMsgData,radioIndex);
400  }
401  else if (strcasecmp(pSetting,"AutoChannelRefreshPeriod") == 0)
402  {
403  ret = pWifiRadio->get_Device_WiFi_Radio_AutoChannelRefreshPeriod(stMsgData,radioIndex);
404  }
405  else if (strcasecmp(pSetting,"OperatingChannelBandwidth") == 0)
406  {
407  ret = pWifiRadio->get_Device_WiFi_Radio_OperatingChannelBandwidth(stMsgData,radioIndex);
408  }
409  else if (strcasecmp(pSetting,"ExtensionChannel") == 0)
410  {
411  ret = pWifiRadio->get_Device_WiFi_Radio_ExtensionChannel(stMsgData,radioIndex);
412  }
413  else if (strcasecmp(pSetting,"GuardInterval") == 0)
414  {
415  ret = pWifiRadio->get_Device_WiFi_Radio_GuardInterval(stMsgData,radioIndex);
416  }
417  else if (strcasecmp(pSetting,"MCS") == 0)
418  {
419  ret = pWifiRadio->get_Device_WiFi_Radio_MCS(stMsgData,radioIndex);
420  }
421  else if (strcasecmp(pSetting,"MCS") == 0)
422  {
423  ret = pWifiRadio->get_Device_WiFi_Radio_MCS(stMsgData,radioIndex);
424  }
425  else if (strcasecmp(pSetting,"TransmitPowerSupported") == 0)
426  {
427  ret = pWifiRadio->get_Device_WiFi_Radio_TransmitPowerSupported(stMsgData,radioIndex);
428  }
429  else if (strcasecmp(pSetting,"TransmitPower") == 0)
430  {
431  ret = pWifiRadio->get_Device_WiFi_Radio_TransmitPower(stMsgData,radioIndex);
432  }
433  else if (strcasecmp(pSetting,"IEEE80211hSupported") == 0)
434  {
435  ret = pWifiRadio->get_Device_WiFi_Radio_IEEE80211hSupported(stMsgData,radioIndex);
436  }
437  else if (strcasecmp(pSetting,"IEEE80211hEnabled") == 0)
438  {
439  ret = pWifiRadio->get_Device_WiFi_Radio_IEEE80211hEnabled(stMsgData,radioIndex);
440  }
441  else if (strcasecmp(pSetting,"RegulatoryDomain") == 0)
442  {
443  ret = pWifiRadio->get_Device_WiFi_Radio_RegulatoryDomain(stMsgData,radioIndex);
444  }
445  else if (strcasecmp(pSetting,"Stats.BytesSent") == 0)
446  {
447  ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_BytesSent(stMsgData,radioIndex);
448  }
449  else if (strcasecmp(pSetting,"Stats.BytesReceived") == 0)
450  {
451  ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_BytesReceived(stMsgData,radioIndex);
452  }
453  else if (strcasecmp(pSetting,"Stats.PacketsSent") == 0)
454  {
455  ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_PacketsSent(stMsgData,radioIndex);
456  }
457  else if (strcasecmp(pSetting,"Stats.PacketsReceived") == 0)
458  {
459  ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_PacketsReceived(stMsgData,radioIndex);
460  }
461  else if (strcasecmp(pSetting,"Stats.ErrorsSent") == 0)
462  {
463  ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_ErrorsSent(stMsgData,radioIndex);
464  }
465  else if (strcasecmp(pSetting,"Stats.ErrorsReceived") == 0)
466  {
467  ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_ErrorsReceived(stMsgData,radioIndex);
468  }
469  else if (strcasecmp(pSetting,"Stats.DiscardPacketsSent") == 0)
470  {
471  ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_DiscardPacketsSent(stMsgData,radioIndex);
472  }
473  else if (strcasecmp(pSetting,"Stats.DiscardPacketsReceived") == 0)
474  {
475  ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_DiscardPacketsReceived(stMsgData,radioIndex);
476  }
477  else if (strcasecmp(pSetting,"Stats.Noise") == 0)
478  {
479  ret = pWifiRadioStats->get_Device_WiFi_Radio_Stats_NoiseFloor(stMsgData,radioIndex);
480  }
481  else
482  {
483  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->paramName);
484  stMsgData->faultCode = fcInvalidParameterName;
485  ret = NOK;
486  }
487  }
488  else if (matchComponent(stMsgData->paramName, "Device.WiFi.Endpoint", &pSetting, instanceNum))
489  {
490  stMsgData->instanceNum = instanceNum;
491  hostIf_WiFi_EndPoint *pWifiEndPoint = hostIf_WiFi_EndPoint::getInstance(stMsgData->instanceNum);
492  hostIf_WiFi_EndPoint_WPS *pWifiEndPointWps = hostIf_WiFi_EndPoint_WPS::getInstance(stMsgData->instanceNum);
493  hostIf_WiFi_EndPoint_Security *pWifiEndpointSec = hostIf_WiFi_EndPoint_Security::getInstance(stMsgData->instanceNum);
494 
495  if ((!pWifiEndPoint) || (!pWifiEndPointWps) || (!pWifiEndpointSec))
496  {
497  return NOK;
498  }
499 
500  if (strcasecmp(pSetting,"Enable") == 0)
501  {
502  ret = pWifiEndPoint->get_Device_WiFi_EndPoint_Enable(stMsgData);
503  }
504  else if (strcasecmp(pSetting,"Status") == 0)
505  {
506  ret = pWifiEndPoint->get_Device_WiFi_EndPoint_Status(stMsgData);
507  }
508  else if (strcasecmp(pSetting,"Alias") == 0)
509  {
510  ret = pWifiEndPoint->get_Device_WiFi_EndPoint_Alias(stMsgData);
511  }
512  else if (strcasecmp(pSetting,"ProfileReference") == 0)
513  {
514  ret = pWifiEndPoint->get_Device_WiFi_EndPoint_ProfileReference(stMsgData);
515  }
516  else if (strcasecmp(pSetting,"SSIDReference") == 0)
517  {
518  ret = pWifiEndPoint->get_Device_WiFi_EndPoint_SSIDReference(stMsgData);
519  }
520  else if (strcasecmp(pSetting,"ProfileNumberOfEntries") == 0)
521  {
522  ret = pWifiEndPoint->get_Device_WiFi_EndPoint_ProfileNumberOfEntries(stMsgData);
523  }
524  else if (strcasecmp(pSetting,"Stats.LastDataDownlinkRate") == 0)
525  {
526  ret = pWifiEndPoint->get_Device_WiFi_EndPoint_Stats_LastDataDownlinkRate(stMsgData);
527  }
528  else if (strcasecmp(pSetting,"Stats.LastDataUplinkRate") == 0)
529  {
530  ret = pWifiEndPoint->get_Device_WiFi_EndPoint_Stats_LastDataUplinkRate(stMsgData);
531  }
532  else if (strcasecmp(pSetting,"Stats.SignalStrength") == 0)
533  {
534  ret = pWifiEndPoint->get_Device_WiFi_EndPoint_Stats_SignalStrength(stMsgData);
535  }
536  else if (strcasecmp(pSetting,"Stats.Retransmissions") == 0)
537  {
538  ret = pWifiEndPoint->get_Device_WiFi_EndPoint_Stats_Retransmissions(stMsgData);
539  }
540  else if(strcasecmp(pSetting,"Security.ModesEnabled") == 0)
541  {
542  ret = pWifiEndpointSec->get_hostIf_WiFi_EndPoint_Security_ModesEnabled(stMsgData);
543  }
544  else
545  {
546  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->paramName);
547  stMsgData->faultCode = fcInvalidParameterName;
548  ret = NOK;
549  }
550 
551  }
552  else if (matchComponent(stMsgData->paramName, "Device.WiFi.AccessPoint", &pSetting, instanceNum))
553  {
554  stMsgData->instanceNum = instanceNum;
555  hostIf_WiFi_AccessPoint *pIfaceAccessPoint = hostIf_WiFi_AccessPoint::getInstance(stMsgData->instanceNum);
556  hostIf_WiFi_AccessPoint_WPS *pIfaceAccessPointWps = hostIf_WiFi_AccessPoint_WPS::getInstance(stMsgData->instanceNum);
557  hostIf_WiFi_AccessPoint_Security *pIfaceAccessPointSec = hostIf_WiFi_AccessPoint_Security::getInstance(stMsgData->instanceNum);
558  hostIf_WiFi_AccessPoint_AssociatedDevice *pIfaceAccessPointAssDev = hostIf_WiFi_AccessPoint_AssociatedDevice::getInstance(stMsgData->instanceNum);
559 
560  if ((!pIfaceAccessPoint) || (!pIfaceAccessPointWps) || (!pIfaceAccessPointSec) || (!pIfaceAccessPointAssDev))
561  {
562  return NOK;
563  }
564  }
565  else if (matchComponent(stMsgData->paramName, "Device.WiFi.SSID", &pSetting, instanceNum))
566  {
567  if ((instanceNum <= 0) || (instanceNum > maxSSID_Instances))
568  {
569  return NOK;
570  }
571 
572  stMsgData->instanceNum = instanceNum;
573  hostIf_WiFi_SSID *pIfaceSsid = hostIf_WiFi_SSID::getInstance(stMsgData->instanceNum);
574  hostIf_WiFi_SSID_Stats *pIfaceSsidStats = hostIf_WiFi_SSID_Stats::getInstance(stMsgData->instanceNum);
575 
576  if ((!pIfaceSsid) || (!pIfaceSsidStats))
577  {
578  return NOK;
579  }
580 
581  if (strcasecmp(pSetting, "Enable") == 0)
582  {
583  ret = pIfaceSsid->get_Device_WiFi_SSID_Enable(stMsgData);
584  }
585  else if (strcasecmp(pSetting, "Status") == 0)
586  {
587  ret = pIfaceSsid->get_Device_WiFi_SSID_Status(stMsgData);
588  }
589  else if (strcasecmp(pSetting, "BSSID") == 0)
590  {
591  ret = pIfaceSsid->get_Device_WiFi_SSID_BSSID(stMsgData);
592  }
593  else if (strcasecmp(pSetting, "MACAddress") == 0)
594  {
595  ret = pIfaceSsid->get_Device_WiFi_SSID_MACAddress(stMsgData);
596  }
597  else if (strcasecmp(pSetting, "SSID") == 0)
598  {
599  ret = pIfaceSsid->get_Device_WiFi_SSID_SSID(stMsgData);
600  }
601  else if (strcasecmp(pSetting, "Name") == 0)
602  {
603  ret = pIfaceSsid->get_Device_WiFi_SSID_Name(stMsgData);
604  }
605  else if (strcasecmp(pSetting, "Alias") == 0)
606  {
607  ret = pIfaceSsid->get_Device_WiFi_SSID_Alias(stMsgData);
608  }
609  else
610  {
611  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->paramName);
612  stMsgData->faultCode = fcInvalidParameterName;
613  ret = NOK;
614  }
615 
616  }
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)
619  {
620  // Get Client Roaming Settings
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)
623  {
624  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_Enable(stMsgData);
625  }
626  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PreAssn_BestThresholdLevel") == 0)
627  {
628  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PreAssn_BestThresholdLevel(stMsgData);
629  }
630  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PreAssn_BestDeltaLevel") == 0)
631  {
632  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PreAssn_BestDeltaLevel(stMsgData);
633  }
634  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.SelfSteer_Override") == 0)
635  {
636  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_SelfSteerOverride(stMsgData);
637  }
638  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BestDeltaLevelConnected") == 0)
639  {
640  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_BestDeltaLevelConnected(stMsgData);
641  }
642  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BestDeltaLevelDisconnected") == 0)
643  {
644  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_BestDeltaLevelDisconnected(stMsgData);
645  }
646  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_SelfSteerThresholdLevel") == 0)
647  {
648  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_SelfSteerThreshold(stMsgData);
649  }
650  else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_SelfSteerTimeframe") == 0)
651  {
652  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_SelfSteerTimeframe(stMsgData);
653  }
654  /* else if (strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_SelfSteerBeaconsMissedTime") == 0)
655  {
656  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_SelfSteerBeaconsMissedTime(stMsgData);
657  }*/
658  else if(strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_APcontrolThresholdLevel") == 0)
659  {
660  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_APcontrolThresholdLevel(stMsgData);
661  }
662  else if(strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_APcontrolTimeframe") == 0)
663  {
664  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_PostAssn_APcontrolTimeframe(stMsgData);
665  }
666  else if(strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.SelfSteer_OverrideEnable") == 0)
667  {
668  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_SelfSteerOverride(stMsgData);
669  }
670  else if(strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.PostAssn_BackOffTime") == 0)
671  {
672  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_postAssnBackOffTime(stMsgData);
673  }
674  else if(strcasecmp(stMsgData->paramName,"Device.WiFi.X_RDKCENTRAL-COM_ClientRoaming.80211kvrEnable") == 0)
675  {
676  ret = clntRoamInst->get_Device_WiFi_X_Rdkcentral_clientRoaming_80211kvrEnable(stMsgData);
677  }
678  else
679  {
680  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->paramName);
681  stMsgData->faultCode = fcInvalidParameterName;
682  ret = NOK;
683  }
684  }
685 #endif
686  else
687  {
688  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%d] Parameter : \'%s\' is Not Supported \n", __FUNCTION__, __LINE__, stMsgData->paramName);
689  stMsgData->faultCode = fcInvalidParameterName;
690  ret = NOK;
691  }
692 
693  return ret;
694 }
695 
696 int WiFiReqHandler::handleGetAttributesMsg(HOSTIF_MsgData_t *stMsgData)
697 {
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);
700  // TODO: Retrieve notification value from DeviceInfo structure for given parameter
701  return ret;
702 }
703 
704 int WiFiReqHandler::handleSetAttributesMsg(HOSTIF_MsgData_t *stMsgData)
705 {
706 
707  int ret = NOT_HANDLED;
708 /* int instanceNumber = 0;
709  hostIf_WiFi::getLock();
710  // TODO: Set notification value from DeviceInfo structure for given parameter
711  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s:%d] WiFiReqHandler get para as %s\n", __FUNCTION__, __FILE__, __LINE__, stMsgData->paramName);
712  hostIf_WiFi *pIface = hostIf_WiFi::getInstance(instanceNumber);
713  stMsgData->instanceNum = instanceNumber;
714  if(!pIface)
715  {
716  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s:%d] pIface is failed. For param as %s\n", __FUNCTION__, __FILE__, __LINE__, stMsgData->paramName);
717  hostIf_WiFi::releaseLock();
718  return NOK;
719  }
720  GHashTable* notifyhash = pIface->getNotifyHash();
721  if(notifyhash != NULL)
722  {
723  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s:%d] notifyhash is not Null %s\n", __FUNCTION__, __FILE__, __LINE__, stMsgData->paramName);
724  int notifyvalue = get_int(stMsgData->paramValue);
725  g_hash_table_insert(notifyhash,stMsgData->paramName,(gpointer) notifyvalue);
726  ret = OK;
727  }
728  else
729  {
730  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s:%d] notifyhash is Null %s\n", __FUNCTION__, __FILE__, __LINE__, stMsgData->paramName);
731  ret = NOK;
732  }
733  hostIf_WiFi::releaseLock();*/
734  return ret;
735 }
736 void WiFiReqHandler::registerUpdateCallback(updateCallback cb)
737 {
738  mUpdateCallback = cb;
739 }
740 
741 void WiFiReqHandler::checkForUpdates()
742 {
743  LOG_ENTRY_EXIT;
744 
745  if (NULL == mUpdateCallback)
746  {
747  RDK_LOG (RDK_LOG_ERROR, LOG_TR69HOSTIF, "[%s:%s] mUpdateCallback is NULL\n", __FILE__, __FUNCTION__);
748  return;
749  }
750 
751  hostIf_WiFi *pIface = hostIf_WiFi::getInstance(1);
752  if (NULL == pIface)
753  {
754  RDK_LOG (RDK_LOG_ERROR, LOG_TR69HOSTIF, "[%s:%s] hostIf_WiFi::getInstance(1) returned NULL\n", __FILE__, __FUNCTION__);
755  return;
756  }
757 
758  HOSTIF_MsgData_t stMsgData;
759 
760  if (OK == pIface->get_Device_WiFi_SSIDNumberOfEntries(&stMsgData))
761  {
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);
766  }
767 
768  if (!bfirstInstance && (OK == pIface->get_Device_WiFi_RadioNumberOfEntries (&stMsgData)))
769  {
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);
775  }
776 
777  if (OK == pIface->get_Device_WiFi_EndPointNumberOfEntries (&stMsgData))
778  {
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);
783  }
784 }
785 
786 #endif /* #ifdef USE_WIFI_PROFILE */
787 
788 
789 /** @} */
790 /** @} */
hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_BytesReceived
int get_Device_WiFi_Radio_Stats_BytesReceived(HOSTIF_MsgData_t *stMsgData, int radioIndex)
Get the total number of bytes received on the interface, including framing characters.
hostIf_WiFi_Radio::get_Device_WiFi_Radio_Upstream
int get_Device_WiFi_Radio_Upstream(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
Device_WiFi.h
hostIf_WiFi_Radio::get_Device_WiFi_Radio_Name
int get_Device_WiFi_Radio_Name(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
_HostIf_MsgData_t::instanceNum
short instanceNum
Definition: hostIf_tr69ReqHandler.h:176
hostIf_WiFi_Radio::get_Device_WiFi_Radio_AutoChannelSupported
int get_Device_WiFi_Radio_AutoChannelSupported(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
hostIf_WiFi_AccessPoint_AssociatedDevice
Definition: Device_WiFi_AccessPoint_AssociatedDevice.h:46
hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_DiscardPacketsReceived
int get_Device_WiFi_Radio_Stats_DiscardPacketsReceived(HOSTIF_MsgData_t *stMsgData, int radioIndex)
Get the total number of inbound packets which were chosen to be discarded even though no errors had b...
Device_WiFi_Radio_Stats.h
hostIf_WiFi_Radio::get_Device_WiFi_Radio_SupportedStandards
int get_Device_WiFi_Radio_SupportedStandards(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
hostIf_WiFi_Radio::get_Device_WiFi_Radio_PossibleChannels
int get_Device_WiFi_Radio_PossibleChannels(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
hostIf_WiFi_Radio::get_Device_WiFi_Radio_Enable
int get_Device_WiFi_Radio_Enable(HOSTIF_MsgData_t *stMsgData, int radioIndex)
Enables or disables the radio.
hostIf_WiFi_AccessPoint_Security
Definition: Device_WiFi_AccessPoint_Security.h:44
hostIf_WiFi_Radio::get_Device_WiFi_Radio_AutoChannelEnable
int get_Device_WiFi_Radio_AutoChannelEnable(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_BytesSent
int get_Device_WiFi_Radio_Stats_BytesSent(HOSTIF_MsgData_t *stMsgData, int radioIndex)
Get total number of bytes transmitted out of the interface, including framing characters.
hostIf_WiFi_Radio::get_Device_WiFi_Radio_OperatingStandards
int get_Device_WiFi_Radio_OperatingStandards(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_DiscardPacketsSent
int get_Device_WiFi_Radio_Stats_DiscardPacketsSent(HOSTIF_MsgData_t *stMsgData, int radioIndex)
Get the total number of outbound packets which were chosen to be discarded even though no errors had ...
hostIf_WiFi_Radio::get_Device_WiFi_Radio_OperatingFrequencyBand
int get_Device_WiFi_Radio_OperatingFrequencyBand(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
hostIf_WiFi_EndPoint::get_Device_WiFi_EndPoint_Enable
int get_Device_WiFi_EndPoint_Enable(HOSTIF_MsgData_t *stMsgData)
Check wethen wifi endpoint is enabled or not.
_HostIf_MsgData_t
Definition: hostIf_tr69ReqHandler.h:170
hostIf_WiFi_EndPoint::get_Device_WiFi_EndPoint_Alias
int get_Device_WiFi_EndPoint_Alias(HOSTIF_MsgData_t *stMsgData)
Get the alias name of the wireless endpoint.
Device_WiFi_SSID.h
hostIf_WiFi_EndPoint_Security
Definition: Device_WiFi_EndPoint_Security.h:42
hostIf_WiFi_EndPoint
Definition: Device_WiFi_EndPoint.h:62
hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_PacketsSent
int get_Device_WiFi_Radio_Stats_PacketsSent(HOSTIF_MsgData_t *stMsgData, int radioIndex)
Get the value of 'Device.WiFi.Radio.Stats.PacketsSent'. This function provides the total number of pa...
hostIf_WiFi_Radio::get_Device_WiFi_Radio_Channel
int get_Device_WiFi_Radio_Channel(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
hostIf_WiFi_Radio::get_Device_WiFi_Radio_Status
int get_Device_WiFi_Radio_Status(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
hostIf_main.h
hostIf_main API.
hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_ErrorsReceived
int get_Device_WiFi_Radio_Stats_ErrorsReceived(HOSTIF_MsgData_t *stMsgData, int radioIndex)
Get the total number of inbound packets that contained errors preventing them from being delivered to...
hostIf_WiFi_Radio::get_Device_WiFi_Radio_LowerLayers
int get_Device_WiFi_Radio_LowerLayers(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
Device_WiFi_Radio.h
TR-069 Device.WiFi.Radio object Public API.
hostIf_WiFi_Radio::get_Device_WiFi_Radio_Alias
int get_Device_WiFi_Radio_Alias(HOSTIF_MsgData_t *stMsgData, int radioIndex)
A non-volatile handle used to reference this instance. Alias provides a mechanism for an ACS to label...
hostIf_WiFi_EndPoint_WPS
Definition: Device_WiFi_EndPoint_WPS.h:44
hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_NoiseFloor
int get_Device_WiFi_Radio_Stats_NoiseFloor(HOSTIF_MsgData_t *stMsgData, int radioIndex)
Get total number of bytes transmitted out of the interface, including framing characters.
RDK_LOG
#define RDK_LOG
Definition: rdk_debug.h:258
hostIf_WiFi_AccessPoint_WPS
Definition: Device_WiFi_AccessPoint_WPS.h:44
_HostIf_MsgData_t::faultCode
faultCode_t faultCode
Definition: hostIf_tr69ReqHandler.h:179
hostIf_WiFi_EndPoint::get_Device_WiFi_EndPoint_Stats_LastDataUplinkRate
int get_Device_WiFi_EndPoint_Stats_LastDataUplinkRate(HOSTIF_MsgData_t *stMsgData)
The data transmit rate in kbps that was most recently used for transmission from the end point to the...
_HostIf_MsgData_t::paramName
char paramName[(4 *1024)]
Definition: hostIf_tr69ReqHandler.h:171
hostIf_WiFi_EndPoint::get_Device_WiFi_EndPoint_ProfileNumberOfEntries
int get_Device_WiFi_EndPoint_ProfileNumberOfEntries(HOSTIF_MsgData_t *stMsgData)
Check wethen wifi endpoint is enabled or not.
hostIf_WiFi_EndPoint::get_Device_WiFi_EndPoint_Stats_SignalStrength
int get_Device_WiFi_EndPoint_Stats_SignalStrength(HOSTIF_MsgData_t *stMsgData)
This function provide an indicator of radio signal strength of the downlink from the access point to ...
hostIf_WiFi_Radio::get_Device_WiFi_Radio_LastChange
int get_Device_WiFi_Radio_LastChange(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
hostIf_WiFi_SSID_Stats
Definition: Device_WiFi_SSID_Stats.h:52
Device_WiFi_X_RDKCENTRAL_COM_ClientRoaming.h
TR-069 Device.WiFi.Radio object Public API.
hostIf_WiFi_Radio
Definition: Device_WiFi_Radio.h:107
hostIf_WiFi_Radio::get_Device_WiFi_Radio_ChannelsInUse
int get_Device_WiFi_Radio_ChannelsInUse(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
_HostIf_MsgData_t::paramValue
char paramValue[(4 *1024)]
Definition: hostIf_tr69ReqHandler.h:172
hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_ErrorsSent
int get_Device_WiFi_Radio_Stats_ErrorsSent(HOSTIF_MsgData_t *stMsgData, int radioIndex)
Get the total number of outbound packets that could not be transmitted because of errors.
hostIf_WiFi_Radio::get_Device_WiFi_Radio_MaxBitRate
int get_Device_WiFi_Radio_MaxBitRate(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
hostIf_WiFi_EndPoint::get_Device_WiFi_EndPoint_ProfileReference
int get_Device_WiFi_EndPoint_ProfileReference(HOSTIF_MsgData_t *stMsgData)
Set the alias name for the wireless endpoint.
hostIf_WiFi_Radio::get_Device_WiFi_Radio_SupportedFrequencyBands
int get_Device_WiFi_Radio_SupportedFrequencyBands(HOSTIF_MsgData_t *stMsgData, int radioIndex)
get_Device_WiFi_Radio_Status
hostIf_WiFi_EndPoint::get_Device_WiFi_EndPoint_Stats_LastDataDownlinkRate
int get_Device_WiFi_EndPoint_Stats_LastDataDownlinkRate(HOSTIF_MsgData_t *stMsgData)
Get the data transmit rate in kbps that was most recently used for transmission from the access point...
msgHandler
Definition: hostIf_msgHandler.h:103
hostIf_msgHandler.h
The header file provides HostIf message handler information APIs.
hostIf_WiFi_ReqHandler.h
The header file provides HostIf WiFi request handler information APIs.
hostIf_WiFi_EndPoint::get_Device_WiFi_EndPoint_SSIDReference
int get_Device_WiFi_EndPoint_SSIDReference(HOSTIF_MsgData_t *stMsgData)
Check wethen wifi endpoint is enabled or not.
hostIf_WiFi_AccessPoint
Definition: Device_WiFi_AccessPoint.h:59
hostIf_WiFi_Radio_Stats::get_Device_WiFi_Radio_Stats_PacketsReceived
int get_Device_WiFi_Radio_Stats_PacketsReceived(HOSTIF_MsgData_t *stMsgData, int radioIndex)
Get the total number of packets received on the interface.
hostIf_WiFi_EndPoint::get_Device_WiFi_EndPoint_Status
int get_Device_WiFi_EndPoint_Status(HOSTIF_MsgData_t *stMsgData)
Get the status of the wireless end point.
hostIf_WiFi_EndPoint_Security::get_hostIf_WiFi_EndPoint_Security_ModesEnabled
int get_hostIf_WiFi_EndPoint_Security_ModesEnabled(HOSTIF_MsgData_t *stMsgData)
Get the security mode enabled for wifi device. The value must be a member of the list reported by the...
hostIf_WiFi_Radio_Stats
Definition: Device_WiFi_Radio_Stats.h:67
hostIf_WiFi_EndPoint::get_Device_WiFi_EndPoint_Stats_Retransmissions
int get_Device_WiFi_EndPoint_Stats_Retransmissions(HOSTIF_MsgData_t *stMsgData)
Get the number of packets that had to be re-transmitted, from the last 100 packets sent to the access...