Commit cf32c3c4 authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman

staging: wilc1000: rename SendConfigPkt

This patch replaces SendConfigPkt with send_config_pkt to aovid
camelcase.
Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c22dbd4b
...@@ -717,8 +717,8 @@ extern wilc_wlan_oup_t *gpstrWlanOps; ...@@ -717,8 +717,8 @@ extern wilc_wlan_oup_t *gpstrWlanOps;
* @date 1 Mar 2012 * @date 1 Mar 2012
* @version 1.0 * @version 1.0
*/ */
s32 SendConfigPkt(u8 u8Mode, tstrWID *pstrWIDs, s32 send_config_pkt(u8 u8Mode, tstrWID *pstrWIDs,
u32 u32WIDsCount, bool bRespRequired, u32 drvHandler) u32 u32WIDsCount, bool bRespRequired, u32 drvHandler)
{ {
s32 counter = 0, ret = 0; s32 counter = 0, ret = 0;
......
...@@ -156,8 +156,8 @@ typedef struct wid_site_survey_reslts { ...@@ -156,8 +156,8 @@ typedef struct wid_site_survey_reslts {
} wid_site_survey_reslts_s; } wid_site_survey_reslts_s;
#endif #endif
s32 SendConfigPkt(u8 u8Mode, tstrWID *pstrWIDs, s32 send_config_pkt(u8 u8Mode, tstrWID *pstrWIDs,
u32 u32WIDsCount, bool bRespRequired, u32 drvHandler); u32 u32WIDsCount, bool bRespRequired, u32 drvHandler);
s32 ParseNetworkInfo(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInfo); s32 ParseNetworkInfo(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInfo);
s32 DeallocateNetworkInfo(tstrNetworkInfo *pstrNetworkInfo); s32 DeallocateNetworkInfo(tstrNetworkInfo *pstrNetworkInfo);
......
...@@ -645,8 +645,8 @@ static s32 Handle_SetChannel(tstrWILC_WFIDrv *drvHandler, ...@@ -645,8 +645,8 @@ static s32 Handle_SetChannel(tstrWILC_WFIDrv *drvHandler,
PRINT_D(HOSTINF_DBG, "Setting channel\n"); PRINT_D(HOSTINF_DBG, "Setting channel\n");
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to set channel\n"); PRINT_ER("Failed to set channel\n");
return -EINVAL; return -EINVAL;
...@@ -681,8 +681,8 @@ static s32 Handle_SetWfiDrvHandler(tstrWILC_WFIDrv *drvHandler, ...@@ -681,8 +681,8 @@ static s32 Handle_SetWfiDrvHandler(tstrWILC_WFIDrv *drvHandler,
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
pstrHostIfSetDrvHandler->u32Address); pstrHostIfSetDrvHandler->u32Address);
if (pstrWFIDrv == NULL) if (pstrWFIDrv == NULL)
up(&hSemDeinitDrvHandle); up(&hSemDeinitDrvHandle);
...@@ -723,8 +723,8 @@ static s32 Handle_SetOperationMode(tstrWILC_WFIDrv *drvHandler, ...@@ -723,8 +723,8 @@ static s32 Handle_SetOperationMode(tstrWILC_WFIDrv *drvHandler,
/*Sending Cfg*/ /*Sending Cfg*/
PRINT_INFO(HOSTINF_DBG, "pstrWFIDrv= %p\n", pstrWFIDrv); PRINT_INFO(HOSTINF_DBG, "pstrWFIDrv= %p\n", pstrWFIDrv);
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if ((pstrHostIfSetOperationMode->u32Mode) == IDLE_MODE) if ((pstrHostIfSetOperationMode->u32Mode) == IDLE_MODE)
...@@ -769,8 +769,8 @@ s32 Handle_set_IPAddress(tstrWILC_WFIDrv *drvHandler, u8 *pu8IPAddr, u8 idx) ...@@ -769,8 +769,8 @@ s32 Handle_set_IPAddress(tstrWILC_WFIDrv *drvHandler, u8 *pu8IPAddr, u8 idx)
strWID.ps8WidVal = (u8 *)pu8IPAddr; strWID.ps8WidVal = (u8 *)pu8IPAddr;
strWID.s32ValueSize = IP_ALEN; strWID.s32ValueSize = IP_ALEN;
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
host_int_get_ipaddress(drvHandler, firmwareIPAddress, idx); host_int_get_ipaddress(drvHandler, firmwareIPAddress, idx);
...@@ -808,8 +808,8 @@ s32 Handle_get_IPAddress(tstrWILC_WFIDrv *drvHandler, u8 *pu8IPAddr, u8 idx) ...@@ -808,8 +808,8 @@ s32 Handle_get_IPAddress(tstrWILC_WFIDrv *drvHandler, u8 *pu8IPAddr, u8 idx)
strWID.ps8WidVal = kmalloc(IP_ALEN, GFP_KERNEL); strWID.ps8WidVal = kmalloc(IP_ALEN, GFP_KERNEL);
strWID.s32ValueSize = IP_ALEN; strWID.s32ValueSize = IP_ALEN;
s32Error = SendConfigPkt(GET_CFG, &strWID, 1, true, s32Error = send_config_pkt(GET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
PRINT_INFO(HOSTINF_DBG, "%pI4\n", strWID.ps8WidVal); PRINT_INFO(HOSTINF_DBG, "%pI4\n", strWID.ps8WidVal);
...@@ -865,8 +865,8 @@ static s32 Handle_SetMacAddress(tstrWILC_WFIDrv *drvHandler, ...@@ -865,8 +865,8 @@ static s32 Handle_SetMacAddress(tstrWILC_WFIDrv *drvHandler,
strWID.s32ValueSize = ETH_ALEN; strWID.s32ValueSize = ETH_ALEN;
PRINT_D(GENERIC_DBG, "mac addr = :%pM\n", strWID.ps8WidVal); PRINT_D(GENERIC_DBG, "mac addr = :%pM\n", strWID.ps8WidVal);
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to set mac address\n"); PRINT_ER("Failed to set mac address\n");
s32Error = -EFAULT; s32Error = -EFAULT;
...@@ -900,8 +900,8 @@ static s32 Handle_GetMacAddress(tstrWILC_WFIDrv *drvHandler, ...@@ -900,8 +900,8 @@ static s32 Handle_GetMacAddress(tstrWILC_WFIDrv *drvHandler,
strWID.s32ValueSize = ETH_ALEN; strWID.s32ValueSize = ETH_ALEN;
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(GET_CFG, &strWID, 1, false, s32Error = send_config_pkt(GET_CFG, &strWID, 1, false,
get_id_from_handler(drvHandler)); get_id_from_handler(drvHandler));
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to get mac address\n"); PRINT_ER("Failed to get mac address\n");
s32Error = -EFAULT; s32Error = -EFAULT;
...@@ -1242,8 +1242,8 @@ static s32 Handle_CfgParam(tstrWILC_WFIDrv *drvHandler, ...@@ -1242,8 +1242,8 @@ static s32 Handle_CfgParam(tstrWILC_WFIDrv *drvHandler,
} }
u8WidCnt++; u8WidCnt++;
} }
s32Error = SendConfigPkt(SET_CFG, strWIDList, u8WidCnt, false, s32Error = send_config_pkt(SET_CFG, strWIDList, u8WidCnt, false,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_ER("Error in setting CFG params\n"); PRINT_ER("Error in setting CFG params\n");
...@@ -1398,8 +1398,8 @@ static s32 Handle_Scan(tstrWILC_WFIDrv *drvHandler, ...@@ -1398,8 +1398,8 @@ static s32 Handle_Scan(tstrWILC_WFIDrv *drvHandler,
else if (pstrWFIDrv->enuHostIFstate == HOST_IF_IDLE) else if (pstrWFIDrv->enuHostIFstate == HOST_IF_IDLE)
gbScanWhileConnected = false; gbScanWhileConnected = false;
s32Error = SendConfigPkt(SET_CFG, strWIDList, u32WidsCount, false, s32Error = send_config_pkt(SET_CFG, strWIDList, u32WidsCount, false,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_ER("Failed to send scan paramters config packet\n"); PRINT_ER("Failed to send scan paramters config packet\n");
...@@ -1473,8 +1473,8 @@ static s32 Handle_ScanDone(tstrWILC_WFIDrv *drvHandler, tenuScanEvent enuEvent) ...@@ -1473,8 +1473,8 @@ static s32 Handle_ScanDone(tstrWILC_WFIDrv *drvHandler, tenuScanEvent enuEvent)
strWID.s32ValueSize = sizeof(char); strWID.s32ValueSize = sizeof(char);
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to set abort running scan\n"); PRINT_ER("Failed to set abort running scan\n");
s32Error = -EFAULT; s32Error = -EFAULT;
...@@ -1668,8 +1668,8 @@ static s32 Handle_Connect(tstrWILC_WFIDrv *drvHandler, ...@@ -1668,8 +1668,8 @@ static s32 Handle_Connect(tstrWILC_WFIDrv *drvHandler,
gu32WidConnRstHack = 0; gu32WidConnRstHack = 0;
/* ////////////////////// */ /* ////////////////////// */
s32Error = SendConfigPkt(SET_CFG, strWIDList, u32WidsCount, false, s32Error = send_config_pkt(SET_CFG, strWIDList, u32WidsCount, false,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
PRINT_ER("failed to send config packet\n"); PRINT_ER("failed to send config packet\n");
s32Error = -EINVAL; s32Error = -EINVAL;
...@@ -1989,8 +1989,8 @@ static s32 Handle_Connect(tstrWILC_WFIDrv *drvHandler, ...@@ -1989,8 +1989,8 @@ static s32 Handle_Connect(tstrWILC_WFIDrv *drvHandler,
PRINT_D(GENERIC_DBG, "save bssid = %pM\n", u8ConnectedSSID); PRINT_D(GENERIC_DBG, "save bssid = %pM\n", u8ConnectedSSID);
} }
s32Error = SendConfigPkt(SET_CFG, strWIDList, u32WidsCount, false, s32Error = send_config_pkt(SET_CFG, strWIDList, u32WidsCount, false,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
PRINT_ER("failed to send config packet\n"); PRINT_ER("failed to send config packet\n");
s32Error = -EFAULT; s32Error = -EFAULT;
...@@ -2120,8 +2120,8 @@ static s32 Handle_FlushConnect(tstrWILC_WFIDrv *drvHandler) ...@@ -2120,8 +2120,8 @@ static s32 Handle_FlushConnect(tstrWILC_WFIDrv *drvHandler)
#endif #endif
s32Error = SendConfigPkt(SET_CFG, strWIDList, u32WidsCount, false, s32Error = send_config_pkt(SET_CFG, strWIDList, u32WidsCount, false,
get_id_from_handler(gu8FlushedJoinReqDrvHandler)); get_id_from_handler(gu8FlushedJoinReqDrvHandler));
if (s32Error) { if (s32Error) {
PRINT_ER("failed to send config packet\n"); PRINT_ER("failed to send config packet\n");
s32Error = -EINVAL; s32Error = -EINVAL;
...@@ -2201,8 +2201,8 @@ static s32 Handle_ConnectTimeout(tstrWILC_WFIDrv *drvHandler) ...@@ -2201,8 +2201,8 @@ static s32 Handle_ConnectTimeout(tstrWILC_WFIDrv *drvHandler)
PRINT_D(HOSTINF_DBG, "Sending disconnect request\n"); PRINT_D(HOSTINF_DBG, "Sending disconnect request\n");
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, false, s32Error = send_config_pkt(SET_CFG, &strWID, 1, false,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_ER("Failed to send dissconect config packet\n"); PRINT_ER("Failed to send dissconect config packet\n");
...@@ -2753,8 +2753,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler, ...@@ -2753,8 +2753,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler,
strWIDList[3].ps8WidVal = (s8 *)pu8keybuf; strWIDList[3].ps8WidVal = (s8 *)pu8keybuf;
s32Error = SendConfigPkt(SET_CFG, strWIDList, 4, true, s32Error = send_config_pkt(SET_CFG, strWIDList, 4, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
kfree(pu8keybuf); kfree(pu8keybuf);
...@@ -2781,8 +2781,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler, ...@@ -2781,8 +2781,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler,
strWID.ps8WidVal = (s8 *)pu8keybuf; strWID.ps8WidVal = (s8 *)pu8keybuf;
strWID.s32ValueSize = pstrHostIFkeyAttr->uniHostIFkeyAttr.strHostIFwepAttr.u8WepKeylen + 2; strWID.s32ValueSize = pstrHostIFkeyAttr->uniHostIFkeyAttr.strHostIFwepAttr.u8WepKeylen + 2;
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
kfree(pu8keybuf); kfree(pu8keybuf);
} else if (pstrHostIFkeyAttr->u8KeyAction & REMOVEKEY) { } else if (pstrHostIFkeyAttr->u8KeyAction & REMOVEKEY) {
...@@ -2794,8 +2794,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler, ...@@ -2794,8 +2794,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler,
strWID.ps8WidVal = s8idxarray; strWID.ps8WidVal = s8idxarray;
strWID.s32ValueSize = 1; strWID.s32ValueSize = 1;
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
} else { } else {
strWID.u16WIDid = (u16)WID_KEY_ID; strWID.u16WIDid = (u16)WID_KEY_ID;
strWID.enuWIDtype = WID_CHAR; strWID.enuWIDtype = WID_CHAR;
...@@ -2804,8 +2804,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler, ...@@ -2804,8 +2804,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler,
PRINT_D(HOSTINF_DBG, "Setting default key index\n"); PRINT_D(HOSTINF_DBG, "Setting default key index\n");
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
} }
up(&(pstrWFIDrv->hSemTestKeyBlock)); up(&(pstrWFIDrv->hSemTestKeyBlock));
break; break;
...@@ -2850,8 +2850,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler, ...@@ -2850,8 +2850,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler,
strWIDList[1].ps8WidVal = (s8 *)pu8keybuf; strWIDList[1].ps8WidVal = (s8 *)pu8keybuf;
strWIDList[1].s32ValueSize = RX_MIC_KEY_MSG_LEN; strWIDList[1].s32ValueSize = RX_MIC_KEY_MSG_LEN;
s32Error = SendConfigPkt(SET_CFG, strWIDList, 2, true, s32Error = send_config_pkt(SET_CFG, strWIDList, 2, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
kfree(pu8keybuf); kfree(pu8keybuf);
...@@ -2896,8 +2896,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler, ...@@ -2896,8 +2896,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler,
strWID.ps8WidVal = (s8 *)pu8keybuf; strWID.ps8WidVal = (s8 *)pu8keybuf;
strWID.s32ValueSize = RX_MIC_KEY_MSG_LEN; strWID.s32ValueSize = RX_MIC_KEY_MSG_LEN;
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
kfree(pu8keybuf); kfree(pu8keybuf);
...@@ -2953,8 +2953,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler, ...@@ -2953,8 +2953,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler,
strWIDList[1].ps8WidVal = (s8 *)pu8keybuf; strWIDList[1].ps8WidVal = (s8 *)pu8keybuf;
strWIDList[1].s32ValueSize = PTK_KEY_MSG_LEN + 1; strWIDList[1].s32ValueSize = PTK_KEY_MSG_LEN + 1;
s32Error = SendConfigPkt(SET_CFG, strWIDList, 2, true, s32Error = send_config_pkt(SET_CFG, strWIDList, 2, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
kfree(pu8keybuf); kfree(pu8keybuf);
/* ////////////////////////// */ /* ////////////////////////// */
...@@ -2994,8 +2994,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler, ...@@ -2994,8 +2994,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler,
strWID.ps8WidVal = (s8 *)pu8keybuf; strWID.ps8WidVal = (s8 *)pu8keybuf;
strWID.s32ValueSize = PTK_KEY_MSG_LEN; strWID.s32ValueSize = PTK_KEY_MSG_LEN;
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
kfree(pu8keybuf); kfree(pu8keybuf);
/* ////////////////////////// */ /* ////////////////////////// */
...@@ -3034,8 +3034,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler, ...@@ -3034,8 +3034,8 @@ static int Handle_Key(tstrWILC_WFIDrv *drvHandler,
strWID.ps8WidVal = (s8 *)pu8keybuf; strWID.ps8WidVal = (s8 *)pu8keybuf;
strWID.s32ValueSize = (pstrHostIFkeyAttr->uniHostIFkeyAttr.strHostIFpmkidAttr.numpmkid * PMKSA_KEY_LEN) + 1; strWID.s32ValueSize = (pstrHostIFkeyAttr->uniHostIFkeyAttr.strHostIFpmkidAttr.numpmkid * PMKSA_KEY_LEN) + 1;
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
kfree(pu8keybuf); kfree(pu8keybuf);
break; break;
...@@ -3084,8 +3084,8 @@ static void Handle_Disconnect(tstrWILC_WFIDrv *drvHandler) ...@@ -3084,8 +3084,8 @@ static void Handle_Disconnect(tstrWILC_WFIDrv *drvHandler)
memset(u8ConnectedSSID, 0, ETH_ALEN); memset(u8ConnectedSSID, 0, ETH_ALEN);
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, false, s32Error = send_config_pkt(SET_CFG, &strWID, 1, false,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to send dissconect config packet\n"); PRINT_ER("Failed to send dissconect config packet\n");
...@@ -3190,8 +3190,8 @@ static s32 Switch_Log_Terminal(tstrWILC_WFIDrv *drvHandler) ...@@ -3190,8 +3190,8 @@ static s32 Switch_Log_Terminal(tstrWILC_WFIDrv *drvHandler)
strWID.ps8WidVal = &dummy; strWID.ps8WidVal = &dummy;
strWID.s32ValueSize = sizeof(char); strWID.s32ValueSize = sizeof(char);
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
...@@ -3230,8 +3230,8 @@ static s32 Handle_GetChnl(tstrWILC_WFIDrv *drvHandler) ...@@ -3230,8 +3230,8 @@ static s32 Handle_GetChnl(tstrWILC_WFIDrv *drvHandler)
PRINT_D(HOSTINF_DBG, "Getting channel value\n"); PRINT_D(HOSTINF_DBG, "Getting channel value\n");
s32Error = SendConfigPkt(GET_CFG, &strWID, 1, true, s32Error = send_config_pkt(GET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
/*get the value by searching the local copy*/ /*get the value by searching the local copy*/
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to get channel number\n"); PRINT_ER("Failed to get channel number\n");
...@@ -3270,8 +3270,8 @@ static void Handle_GetRssi(tstrWILC_WFIDrv *drvHandler) ...@@ -3270,8 +3270,8 @@ static void Handle_GetRssi(tstrWILC_WFIDrv *drvHandler)
/*Sending Cfg*/ /*Sending Cfg*/
PRINT_D(HOSTINF_DBG, "Getting RSSI value\n"); PRINT_D(HOSTINF_DBG, "Getting RSSI value\n");
s32Error = SendConfigPkt(GET_CFG, &strWID, 1, true, s32Error = send_config_pkt(GET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to get RSSI value\n"); PRINT_ER("Failed to get RSSI value\n");
s32Error = -EFAULT; s32Error = -EFAULT;
...@@ -3298,8 +3298,8 @@ static void Handle_GetLinkspeed(tstrWILC_WFIDrv *drvHandler) ...@@ -3298,8 +3298,8 @@ static void Handle_GetLinkspeed(tstrWILC_WFIDrv *drvHandler)
/*Sending Cfg*/ /*Sending Cfg*/
PRINT_D(HOSTINF_DBG, "Getting LINKSPEED value\n"); PRINT_D(HOSTINF_DBG, "Getting LINKSPEED value\n");
s32Error = SendConfigPkt(GET_CFG, &strWID, 1, true, s32Error = send_config_pkt(GET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to get LINKSPEED value\n"); PRINT_ER("Failed to get LINKSPEED value\n");
s32Error = -EFAULT; s32Error = -EFAULT;
...@@ -3345,8 +3345,8 @@ s32 Handle_GetStatistics(tstrWILC_WFIDrv *drvHandler, tstrStatistics *pstrStatis ...@@ -3345,8 +3345,8 @@ s32 Handle_GetStatistics(tstrWILC_WFIDrv *drvHandler, tstrStatistics *pstrStatis
strWIDList[u32WidsCount].ps8WidVal = (s8 *)(&(pstrStatistics->u32TxFailureCount)); strWIDList[u32WidsCount].ps8WidVal = (s8 *)(&(pstrStatistics->u32TxFailureCount));
u32WidsCount++; u32WidsCount++;
s32Error = SendConfigPkt(GET_CFG, strWIDList, u32WidsCount, false, s32Error = send_config_pkt(GET_CFG, strWIDList, u32WidsCount, false,
get_id_from_handler(drvHandler)); get_id_from_handler(drvHandler));
if (s32Error) if (s32Error)
PRINT_ER("Failed to send scan paramters config packet\n"); PRINT_ER("Failed to send scan paramters config packet\n");
...@@ -3390,8 +3390,8 @@ static s32 Handle_Get_InActiveTime(tstrWILC_WFIDrv *drvHandler, ...@@ -3390,8 +3390,8 @@ static s32 Handle_Get_InActiveTime(tstrWILC_WFIDrv *drvHandler,
PRINT_D(CFG80211_DBG, "SETING STA inactive time\n"); PRINT_D(CFG80211_DBG, "SETING STA inactive time\n");
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
/*get the value by searching the local copy*/ /*get the value by searching the local copy*/
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to SET incative time\n"); PRINT_ER("Failed to SET incative time\n");
...@@ -3405,8 +3405,8 @@ static s32 Handle_Get_InActiveTime(tstrWILC_WFIDrv *drvHandler, ...@@ -3405,8 +3405,8 @@ static s32 Handle_Get_InActiveTime(tstrWILC_WFIDrv *drvHandler,
strWID.s32ValueSize = sizeof(u32); strWID.s32ValueSize = sizeof(u32);
s32Error = SendConfigPkt(GET_CFG, &strWID, 1, true, s32Error = send_config_pkt(GET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
/*get the value by searching the local copy*/ /*get the value by searching the local copy*/
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to get incative time\n"); PRINT_ER("Failed to get incative time\n");
...@@ -3482,8 +3482,8 @@ static void Handle_AddBeacon(tstrWILC_WFIDrv *drvHandler, ...@@ -3482,8 +3482,8 @@ static void Handle_AddBeacon(tstrWILC_WFIDrv *drvHandler,
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, false, s32Error = send_config_pkt(SET_CFG, &strWID, 1, false,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_ER("Failed to send add beacon config packet\n"); PRINT_ER("Failed to send add beacon config packet\n");
...@@ -3525,8 +3525,8 @@ static void Handle_DelBeacon(tstrWILC_WFIDrv *drvHandler, ...@@ -3525,8 +3525,8 @@ static void Handle_DelBeacon(tstrWILC_WFIDrv *drvHandler,
/* TODO: build del beacon message*/ /* TODO: build del beacon message*/
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, false, s32Error = send_config_pkt(SET_CFG, &strWID, 1, false,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_ER("Failed to send delete beacon config packet\n"); PRINT_ER("Failed to send delete beacon config packet\n");
} }
...@@ -3617,8 +3617,8 @@ static void Handle_AddStation(tstrWILC_WFIDrv *drvHandler, ...@@ -3617,8 +3617,8 @@ static void Handle_AddStation(tstrWILC_WFIDrv *drvHandler,
pu8CurrByte += WILC_HostIf_PackStaParam(pu8CurrByte, pstrStationParam); pu8CurrByte += WILC_HostIf_PackStaParam(pu8CurrByte, pstrStationParam);
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, false, s32Error = send_config_pkt(SET_CFG, &strWID, 1, false,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error != 0) if (s32Error != 0)
PRINT_ER("Failed to send add station config packet\n"); PRINT_ER("Failed to send add station config packet\n");
...@@ -3671,8 +3671,8 @@ static void Handle_DelAllSta(tstrWILC_WFIDrv *drvHandler, ...@@ -3671,8 +3671,8 @@ static void Handle_DelAllSta(tstrWILC_WFIDrv *drvHandler,
} }
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_ER("Failed to send add station config packet\n"); PRINT_ER("Failed to send add station config packet\n");
...@@ -3715,8 +3715,8 @@ static void Handle_DelStation(tstrWILC_WFIDrv *drvHandler, ...@@ -3715,8 +3715,8 @@ static void Handle_DelStation(tstrWILC_WFIDrv *drvHandler,
memcpy(pu8CurrByte, pstrDelStaParam->au8MacAddr, ETH_ALEN); memcpy(pu8CurrByte, pstrDelStaParam->au8MacAddr, ETH_ALEN);
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, false, s32Error = send_config_pkt(SET_CFG, &strWID, 1, false,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_ER("Failed to send add station config packet\n"); PRINT_ER("Failed to send add station config packet\n");
...@@ -3755,8 +3755,8 @@ static void Handle_EditStation(tstrWILC_WFIDrv *drvHandler, ...@@ -3755,8 +3755,8 @@ static void Handle_EditStation(tstrWILC_WFIDrv *drvHandler,
pu8CurrByte += WILC_HostIf_PackStaParam(pu8CurrByte, pstrStationParam); pu8CurrByte += WILC_HostIf_PackStaParam(pu8CurrByte, pstrStationParam);
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, false, s32Error = send_config_pkt(SET_CFG, &strWID, 1, false,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_ER("Failed to send edit station config packet\n"); PRINT_ER("Failed to send edit station config packet\n");
...@@ -3831,8 +3831,8 @@ static int Handle_RemainOnChan(tstrWILC_WFIDrv *drvHandler, ...@@ -3831,8 +3831,8 @@ static int Handle_RemainOnChan(tstrWILC_WFIDrv *drvHandler,
strWID.ps8WidVal[1] = (s8)pstrHostIfRemainOnChan->u16Channel; strWID.ps8WidVal[1] = (s8)pstrHostIfRemainOnChan->u16Channel;
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error != 0) if (s32Error != 0)
PRINT_ER("Failed to set remain on channel\n"); PRINT_ER("Failed to set remain on channel\n");
...@@ -3891,8 +3891,8 @@ static int Handle_RegisterFrame(tstrWILC_WFIDrv *drvHandler, ...@@ -3891,8 +3891,8 @@ static int Handle_RegisterFrame(tstrWILC_WFIDrv *drvHandler,
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to frame register config packet\n"); PRINT_ER("Failed to frame register config packet\n");
s32Error = -EINVAL; s32Error = -EINVAL;
...@@ -3938,8 +3938,8 @@ static u32 Handle_ListenStateExpired(tstrWILC_WFIDrv *drvHandler, ...@@ -3938,8 +3938,8 @@ static u32 Handle_ListenStateExpired(tstrWILC_WFIDrv *drvHandler,
strWID.ps8WidVal[1] = FALSE_FRMWR_CHANNEL; strWID.ps8WidVal[1] = FALSE_FRMWR_CHANNEL;
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error != 0) { if (s32Error != 0) {
PRINT_ER("Failed to set remain on channel\n"); PRINT_ER("Failed to set remain on channel\n");
goto _done_; goto _done_;
...@@ -4019,8 +4019,8 @@ static void Handle_PowerManagement(tstrWILC_WFIDrv *drvHandler, ...@@ -4019,8 +4019,8 @@ static void Handle_PowerManagement(tstrWILC_WFIDrv *drvHandler,
PRINT_D(HOSTINF_DBG, "Handling Power Management\n"); PRINT_D(HOSTINF_DBG, "Handling Power Management\n");
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_ER("Failed to send power management config packet\n"); PRINT_ER("Failed to send power management config packet\n");
} }
...@@ -4065,8 +4065,8 @@ static void Handle_SetMulticastFilter(tstrWILC_WFIDrv *drvHandler, ...@@ -4065,8 +4065,8 @@ static void Handle_SetMulticastFilter(tstrWILC_WFIDrv *drvHandler,
memcpy(pu8CurrByte, gau8MulticastMacAddrList, ((strHostIfSetMulti->u32count) * ETH_ALEN)); memcpy(pu8CurrByte, gau8MulticastMacAddrList, ((strHostIfSetMulti->u32count) * ETH_ALEN));
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, false, s32Error = send_config_pkt(SET_CFG, &strWID, 1, false,
get_id_from_handler(drvHandler)); get_id_from_handler(drvHandler));
if (s32Error) if (s32Error)
PRINT_ER("Failed to send setup multicast config packet\n"); PRINT_ER("Failed to send setup multicast config packet\n");
...@@ -4130,8 +4130,8 @@ static s32 Handle_AddBASession(tstrWILC_WFIDrv *drvHandler, ...@@ -4130,8 +4130,8 @@ static s32 Handle_AddBASession(tstrWILC_WFIDrv *drvHandler,
/* Group Buffer Timeout */ /* Group Buffer Timeout */
*ptr++ = 0; *ptr++ = 0;
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_D(HOSTINF_DBG, "Couldn't open BA Session\n"); PRINT_D(HOSTINF_DBG, "Couldn't open BA Session\n");
...@@ -4155,8 +4155,8 @@ static s32 Handle_AddBASession(tstrWILC_WFIDrv *drvHandler, ...@@ -4155,8 +4155,8 @@ static s32 Handle_AddBASession(tstrWILC_WFIDrv *drvHandler,
*ptr++ = ((strHostIfBASessionInfo->u16SessionTimeout >> 16) & 0xFF); *ptr++ = ((strHostIfBASessionInfo->u16SessionTimeout >> 16) & 0xFF);
/*Ack-Policy */ /*Ack-Policy */
*ptr++ = 3; *ptr++ = 3;
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (strWID.ps8WidVal != NULL) if (strWID.ps8WidVal != NULL)
kfree(strWID.ps8WidVal); kfree(strWID.ps8WidVal);
...@@ -4206,8 +4206,8 @@ static s32 Handle_DelBASession(tstrWILC_WFIDrv *drvHandler, ...@@ -4206,8 +4206,8 @@ static s32 Handle_DelBASession(tstrWILC_WFIDrv *drvHandler,
/* Delba Reason */ /* Delba Reason */
*ptr++ = 32; /* Unspecific QOS reason */ *ptr++ = 32; /* Unspecific QOS reason */
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_D(HOSTINF_DBG, "Couldn't delete BA Session\n"); PRINT_D(HOSTINF_DBG, "Couldn't delete BA Session\n");
...@@ -4225,8 +4225,8 @@ static s32 Handle_DelBASession(tstrWILC_WFIDrv *drvHandler, ...@@ -4225,8 +4225,8 @@ static s32 Handle_DelBASession(tstrWILC_WFIDrv *drvHandler,
/* TID*/ /* TID*/
*ptr++ = strHostIfBASessionInfo->u8Ted; *ptr++ = strHostIfBASessionInfo->u8Ted;
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (strWID.ps8WidVal != NULL) if (strWID.ps8WidVal != NULL)
kfree(strWID.ps8WidVal); kfree(strWID.ps8WidVal);
...@@ -4277,8 +4277,8 @@ static s32 Handle_DelAllRxBASessions(tstrWILC_WFIDrv *drvHandler, ...@@ -4277,8 +4277,8 @@ static s32 Handle_DelAllRxBASessions(tstrWILC_WFIDrv *drvHandler,
/* Delba Reason */ /* Delba Reason */
*ptr++ = 32; /* Unspecific QOS reason */ *ptr++ = 32; /* Unspecific QOS reason */
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) if (s32Error)
PRINT_D(HOSTINF_DBG, "Couldn't delete BA Session\n"); PRINT_D(HOSTINF_DBG, "Couldn't delete BA Session\n");
...@@ -5270,8 +5270,8 @@ s32 host_int_get_site_survey_results(tstrWILC_WFIDrv *hWFIDrv, ...@@ -5270,8 +5270,8 @@ s32 host_int_get_site_survey_results(tstrWILC_WFIDrv *hWFIDrv,
astrWIDList[1].ps8WidVal = ppu8RcvdSiteSurveyResults[1]; astrWIDList[1].ps8WidVal = ppu8RcvdSiteSurveyResults[1];
astrWIDList[1].s32ValueSize = u32MaxSiteSrvyFragLen; astrWIDList[1].s32ValueSize = u32MaxSiteSrvyFragLen;
s32Error = SendConfigPkt(GET_CFG, astrWIDList, 2, true, s32Error = send_config_pkt(GET_CFG, astrWIDList, 2, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
/*get the value by searching the local copy*/ /*get the value by searching the local copy*/
if (s32Error) { if (s32Error) {
...@@ -5613,8 +5613,8 @@ s32 host_int_get_assoc_res_info(tstrWILC_WFIDrv *hWFIDrv, u8 *pu8AssocRespInfo, ...@@ -5613,8 +5613,8 @@ s32 host_int_get_assoc_res_info(tstrWILC_WFIDrv *hWFIDrv, u8 *pu8AssocRespInfo,
/* Sending Configuration packet */ /* Sending Configuration packet */
s32Error = SendConfigPkt(GET_CFG, &strWID, 1, true, s32Error = send_config_pkt(GET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
*pu32RcvdAssocRespInfoLen = 0; *pu32RcvdAssocRespInfoLen = 0;
PRINT_ER("Failed to send association response config packet\n"); PRINT_ER("Failed to send association response config packet\n");
...@@ -5846,8 +5846,8 @@ s32 host_int_test_set_int_wid(tstrWILC_WFIDrv *hWFIDrv, u32 u32TestMemAddr) ...@@ -5846,8 +5846,8 @@ s32 host_int_test_set_int_wid(tstrWILC_WFIDrv *hWFIDrv, u32 u32TestMemAddr)
strWID.s32ValueSize = sizeof(u32); strWID.s32ValueSize = sizeof(u32);
/*Sending Cfg*/ /*Sending Cfg*/
s32Error = SendConfigPkt(SET_CFG, &strWID, 1, true, s32Error = send_config_pkt(SET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to set wid value\n"); PRINT_ER("Failed to set wid value\n");
return -EINVAL; return -EINVAL;
...@@ -5930,8 +5930,8 @@ s32 host_int_test_get_int_wid(tstrWILC_WFIDrv *hWFIDrv, u32 *pu32TestMemAddr) ...@@ -5930,8 +5930,8 @@ s32 host_int_test_get_int_wid(tstrWILC_WFIDrv *hWFIDrv, u32 *pu32TestMemAddr)
strWID.ps8WidVal = (s8 *)pu32TestMemAddr; strWID.ps8WidVal = (s8 *)pu32TestMemAddr;
strWID.s32ValueSize = sizeof(u32); strWID.s32ValueSize = sizeof(u32);
s32Error = SendConfigPkt(GET_CFG, &strWID, 1, true, s32Error = send_config_pkt(GET_CFG, &strWID, 1, true,
get_id_from_handler(pstrWFIDrv)); get_id_from_handler(pstrWFIDrv));
/*get the value by searching the local copy*/ /*get the value by searching the local copy*/
if (s32Error) { if (s32Error) {
PRINT_ER("Failed to get wid value\n"); PRINT_ER("Failed to get wid value\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment