38 #ifdef USE_WIFI_PROFILE
39 #include "Device_WiFi_EndPoint_Security.h"
42 #include "wifiSrvMgrIarmIf.h"
45 GHashTable* hostIf_WiFi_EndPoint_Security::ifHash = NULL;
57 ifHash = g_hash_table_new(NULL,NULL);
66 RDK_LOG(RDK_LOG_WARN,LOG_TR69HOSTIF,
"Caught exception, not able create hostIf_WiFi_EndPoint_Security instance..\n");
68 g_hash_table_insert(ifHash, (gpointer)dev_id, pRet);
74 GList* hostIf_WiFi_EndPoint_Security::getAllInstances()
77 return g_hash_table_get_keys(ifHash);
86 g_hash_table_remove(ifHash, (gconstpointer)pDev->dev_id);
91 void hostIf_WiFi_EndPoint_Security::closeAllInstances()
95 GList* tmp_list = g_hash_table_get_values (ifHash);
100 tmp_list = tmp_list->next;
107 hostIf_WiFi_EndPoint_Security::hostIf_WiFi_EndPoint_Security(
int dev_id)
109 memset(ModesSupported, 0, 64);
114 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%s] Entering.. \n", __FUNCTION__, __FILE__);
116 IARM_Result_t retVal = IARM_RESULT_IPCCORE_FAIL;
119 if(NULL == stMsgData)
121 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%s] Input arg stMsgData is NULL\n", __FILE__, __FUNCTION__);
125 memset(¶m, 0,
sizeof(param));
128 if(retVal != IARM_RESULT_SUCCESS) {
129 RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,
"[%s:%s] IARM BUS CALL failed with : %d.\n", __FILE__, __FUNCTION__, retVal);
132 strncpy(stMsgData->
paramValue,param.data.getPairedSSIDInfo.security,
sizeof(stMsgData->
paramValue));
133 stMsgData->
paramtype = hostIf_StringType;
135 retVal = IARM_RESULT_SUCCESS;
136 RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,
"[%s] WiFi Security Mode : %s\n",__FUNCTION__,stMsgData->
paramValue);
138 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%s] Exiting..\n", __FUNCTION__, __FILE__);