Commit 55a27055 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

staging: csr: remove CsrPmemFree()

It's just a wrapper around kfree() so call that instead.

Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
Cc: Riku Mettälä <riku.mettala@bluegiga.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4becf12d
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_panic.h" #include "csr_panic.h"
#include "csr_sched.h" #include "csr_sched.h"
...@@ -312,11 +313,11 @@ void CsrMsgConvDeinit(void) ...@@ -312,11 +313,11 @@ void CsrMsgConvDeinit(void)
{ {
CsrMsgConvPrimEntry *s_next; CsrMsgConvPrimEntry *s_next;
s_next = s->next; s_next = s->next;
CsrPmemFree(s); kfree(s);
s = s_next; s = s_next;
} }
CsrPmemFree(converter); kfree(converter);
converter = NULL; converter = NULL;
} }
EXPORT_SYMBOL_GPL(CsrMsgConvDeinit); EXPORT_SYMBOL_GPL(CsrMsgConvDeinit);
......
...@@ -38,14 +38,3 @@ void *CsrPmemAlloc(size_t size) ...@@ -38,14 +38,3 @@ void *CsrPmemAlloc(size_t size)
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(CsrPmemAlloc); EXPORT_SYMBOL_GPL(CsrPmemAlloc);
void CsrPmemFree(void *ptr)
{
if (ptr == NULL)
{
return;
}
kfree(ptr);
}
EXPORT_SYMBOL_GPL(CsrPmemFree);
...@@ -45,20 +45,6 @@ void *CsrPmemAllocDebug(size_t size, ...@@ -45,20 +45,6 @@ void *CsrPmemAllocDebug(size_t size,
void *CsrPmemAlloc(size_t size); void *CsrPmemAlloc(size_t size);
#endif #endif
/*****************************************************************************
NAME
CsrPmemFree
DESCRIPTION
This function will deallocate a previously allocated block of memory.
PARAMETERS
ptr - Pointer to allocated memory.
*****************************************************************************/
void CsrPmemFree(void *ptr);
#endif #endif
/***************************************************************************** /*****************************************************************************
...@@ -131,7 +117,6 @@ void *CsrPmemDebugAlloc(size_t size, CsrPmemDebugAllocType type, const char* fil ...@@ -131,7 +117,6 @@ void *CsrPmemDebugAlloc(size_t size, CsrPmemDebugAllocType type, const char* fil
#define CsrPmemAlloc(size) CsrPmemDebugAlloc(size, CSR_PMEM_DEBUG_TYPE_PMEM_ALLOC, __FILE__, __LINE__) #define CsrPmemAlloc(size) CsrPmemDebugAlloc(size, CSR_PMEM_DEBUG_TYPE_PMEM_ALLOC, __FILE__, __LINE__)
void CsrPmemDebugFree(void *ptr, CsrPmemDebugAllocType type, const char* file, u32 line); void CsrPmemDebugFree(void *ptr, CsrPmemDebugAllocType type, const char* file, u32 line);
#define CsrPmemFree(ptr) CsrPmemDebugFree(ptr, CSR_PMEM_DEBUG_TYPE_PMEM_ALLOC, __FILE__, __LINE__)
#endif #endif
......
...@@ -125,7 +125,7 @@ void CsrSchedBgintSet(CsrSchedBgint bgint); ...@@ -125,7 +125,7 @@ void CsrSchedBgintSet(CsrSchedBgint bgint);
* obey the convention that when a message built with CsrPmemAlloc()ed memory * obey the convention that when a message built with CsrPmemAlloc()ed memory
* is given to CsrSchedMessagePut() then ownership of the memory is ceded to the * is given to CsrSchedMessagePut() then ownership of the memory is ceded to the
* scheduler - and eventually to the recipient task. I.e., the receiver of * scheduler - and eventually to the recipient task. I.e., the receiver of
* the message will be expected to CsrPmemFree() the message storage. * the message will be expected to kfree() the message storage.
* *
* RETURNS * RETURNS
* void. * void.
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
*****************************************************************************/ *****************************************************************************/
#include <linux/module.h> #include <linux/module.h>
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_unicode.h" #include "csr_unicode.h"
#include "csr_macro.h" #include "csr_macro.h"
...@@ -881,7 +882,7 @@ u16 *CsrUtf16String2XML(u16 *str) ...@@ -881,7 +882,7 @@ u16 *CsrUtf16String2XML(u16 *str)
*outputString++ = 0; *outputString++ = 0;
CsrPmemFree(str); kfree(str);
} }
} }
...@@ -1008,7 +1009,7 @@ u16 *CsrXML2Utf16String(u16 *str) ...@@ -1008,7 +1009,7 @@ u16 *CsrXML2Utf16String(u16 *str)
*outputString++ = 0; *outputString++ = 0;
CsrPmemFree(str); kfree(str);
} }
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*****************************************************************************/ *****************************************************************************/
/* Note: this is an auto-generated file. */ /* Note: this is an auto-generated file. */
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_wifi_nme_ap_prim.h" #include "csr_wifi_nme_ap_prim.h"
#include "csr_wifi_nme_ap_lib.h" #include "csr_wifi_nme_ap_lib.h"
...@@ -41,7 +41,7 @@ void CsrWifiNmeApFreeDownstreamMessageContents(u16 eventClass, void *message) ...@@ -41,7 +41,7 @@ void CsrWifiNmeApFreeDownstreamMessageContents(u16 eventClass, void *message)
case CSR_WIFI_NME_AP_CONFIG_SET_REQ: case CSR_WIFI_NME_AP_CONFIG_SET_REQ:
{ {
CsrWifiNmeApConfigSetReq *p = (CsrWifiNmeApConfigSetReq *)message; CsrWifiNmeApConfigSetReq *p = (CsrWifiNmeApConfigSetReq *)message;
CsrPmemFree(p->apMacConfig.macAddressList); kfree(p->apMacConfig.macAddressList);
p->apMacConfig.macAddressList = NULL; p->apMacConfig.macAddressList = NULL;
break; break;
} }
...@@ -54,7 +54,7 @@ void CsrWifiNmeApFreeDownstreamMessageContents(u16 eventClass, void *message) ...@@ -54,7 +54,7 @@ void CsrWifiNmeApFreeDownstreamMessageContents(u16 eventClass, void *message)
switch (p->apCredentials.nmeAuthType.authTypePersonal.pskOrPassphrase) switch (p->apCredentials.nmeAuthType.authTypePersonal.pskOrPassphrase)
{ {
case CSR_WIFI_NME_AP_CREDENTIAL_TYPE_PASSPHRASE: case CSR_WIFI_NME_AP_CREDENTIAL_TYPE_PASSPHRASE:
CsrPmemFree(p->apCredentials.nmeAuthType.authTypePersonal.authPers_credentials.passphrase.passphrase); kfree(p->apCredentials.nmeAuthType.authTypePersonal.authPers_credentials.passphrase.passphrase);
p->apCredentials.nmeAuthType.authTypePersonal.authPers_credentials.passphrase.passphrase = NULL; p->apCredentials.nmeAuthType.authTypePersonal.authPers_credentials.passphrase.passphrase = NULL;
break; break;
default: default:
...@@ -68,11 +68,11 @@ void CsrWifiNmeApFreeDownstreamMessageContents(u16 eventClass, void *message) ...@@ -68,11 +68,11 @@ void CsrWifiNmeApFreeDownstreamMessageContents(u16 eventClass, void *message)
u16 i3; u16 i3;
for (i3 = 0; i3 < p->p2pGoParam.operatingChanList.channelEntryListCount; i3++) for (i3 = 0; i3 < p->p2pGoParam.operatingChanList.channelEntryListCount; i3++)
{ {
CsrPmemFree(p->p2pGoParam.operatingChanList.channelEntryList[i3].operatingChannel); kfree(p->p2pGoParam.operatingChanList.channelEntryList[i3].operatingChannel);
p->p2pGoParam.operatingChanList.channelEntryList[i3].operatingChannel = NULL; p->p2pGoParam.operatingChanList.channelEntryList[i3].operatingChannel = NULL;
} }
} }
CsrPmemFree(p->p2pGoParam.operatingChanList.channelEntryList); kfree(p->p2pGoParam.operatingChanList.channelEntryList);
p->p2pGoParam.operatingChanList.channelEntryList = NULL; p->p2pGoParam.operatingChanList.channelEntryList = NULL;
break; break;
} }
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
/* Note: this is an auto-generated file. */ /* Note: this is an auto-generated file. */
#include <linux/string.h> #include <linux/string.h>
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_msgconv.h" #include "csr_msgconv.h"
#include "csr_unicode.h" #include "csr_unicode.h"
...@@ -22,7 +23,7 @@ ...@@ -22,7 +23,7 @@
void CsrWifiNmeApPfree(void *ptr) void CsrWifiNmeApPfree(void *ptr)
{ {
CsrPmemFree(ptr); kfree(ptr);
} }
...@@ -221,8 +222,8 @@ void* CsrWifiNmeApConfigSetReqDes(u8 *buffer, size_t length) ...@@ -221,8 +222,8 @@ void* CsrWifiNmeApConfigSetReqDes(u8 *buffer, size_t length)
void CsrWifiNmeApConfigSetReqSerFree(void *voidPrimitivePointer) void CsrWifiNmeApConfigSetReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiNmeApConfigSetReq *primitive = (CsrWifiNmeApConfigSetReq *) voidPrimitivePointer; CsrWifiNmeApConfigSetReq *primitive = (CsrWifiNmeApConfigSetReq *) voidPrimitivePointer;
CsrPmemFree(primitive->apMacConfig.macAddressList); kfree(primitive->apMacConfig.macAddressList);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -555,7 +556,7 @@ void CsrWifiNmeApStartReqSerFree(void *voidPrimitivePointer) ...@@ -555,7 +556,7 @@ void CsrWifiNmeApStartReqSerFree(void *voidPrimitivePointer)
switch (primitive->apCredentials.nmeAuthType.authTypePersonal.pskOrPassphrase) switch (primitive->apCredentials.nmeAuthType.authTypePersonal.pskOrPassphrase)
{ {
case CSR_WIFI_NME_AP_CREDENTIAL_TYPE_PASSPHRASE: case CSR_WIFI_NME_AP_CREDENTIAL_TYPE_PASSPHRASE:
CsrPmemFree(primitive->apCredentials.nmeAuthType.authTypePersonal.authPers_credentials.passphrase.passphrase); kfree(primitive->apCredentials.nmeAuthType.authTypePersonal.authPers_credentials.passphrase.passphrase);
break; break;
default: default:
break; break;
...@@ -568,11 +569,11 @@ void CsrWifiNmeApStartReqSerFree(void *voidPrimitivePointer) ...@@ -568,11 +569,11 @@ void CsrWifiNmeApStartReqSerFree(void *voidPrimitivePointer)
u16 i3; u16 i3;
for (i3 = 0; i3 < primitive->p2pGoParam.operatingChanList.channelEntryListCount; i3++) for (i3 = 0; i3 < primitive->p2pGoParam.operatingChanList.channelEntryListCount; i3++)
{ {
CsrPmemFree(primitive->p2pGoParam.operatingChanList.channelEntryList[i3].operatingChannel); kfree(primitive->p2pGoParam.operatingChanList.channelEntryList[i3].operatingChannel);
} }
} }
CsrPmemFree(primitive->p2pGoParam.operatingChanList.channelEntryList); kfree(primitive->p2pGoParam.operatingChanList.channelEntryList);
CsrPmemFree(primitive); kfree(primitive);
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*****************************************************************************/ *****************************************************************************/
/* Note: this is an auto-generated file. */ /* Note: this is an auto-generated file. */
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_wifi_router_ctrl_prim.h" #include "csr_wifi_router_ctrl_prim.h"
#include "csr_wifi_router_ctrl_lib.h" #include "csr_wifi_router_ctrl_lib.h"
...@@ -41,62 +41,62 @@ void CsrWifiRouterCtrlFreeDownstreamMessageContents(u16 eventClass, void *messag ...@@ -41,62 +41,62 @@ void CsrWifiRouterCtrlFreeDownstreamMessageContents(u16 eventClass, void *messag
case CSR_WIFI_ROUTER_CTRL_HIP_REQ: case CSR_WIFI_ROUTER_CTRL_HIP_REQ:
{ {
CsrWifiRouterCtrlHipReq *p = (CsrWifiRouterCtrlHipReq *)message; CsrWifiRouterCtrlHipReq *p = (CsrWifiRouterCtrlHipReq *)message;
CsrPmemFree(p->mlmeCommand); kfree(p->mlmeCommand);
p->mlmeCommand = NULL; p->mlmeCommand = NULL;
CsrPmemFree(p->dataRef1); kfree(p->dataRef1);
p->dataRef1 = NULL; p->dataRef1 = NULL;
CsrPmemFree(p->dataRef2); kfree(p->dataRef2);
p->dataRef2 = NULL; p->dataRef2 = NULL;
break; break;
} }
case CSR_WIFI_ROUTER_CTRL_MULTICAST_ADDRESS_RES: case CSR_WIFI_ROUTER_CTRL_MULTICAST_ADDRESS_RES:
{ {
CsrWifiRouterCtrlMulticastAddressRes *p = (CsrWifiRouterCtrlMulticastAddressRes *)message; CsrWifiRouterCtrlMulticastAddressRes *p = (CsrWifiRouterCtrlMulticastAddressRes *)message;
CsrPmemFree(p->getAddresses); kfree(p->getAddresses);
p->getAddresses = NULL; p->getAddresses = NULL;
break; break;
} }
case CSR_WIFI_ROUTER_CTRL_TCLAS_ADD_REQ: case CSR_WIFI_ROUTER_CTRL_TCLAS_ADD_REQ:
{ {
CsrWifiRouterCtrlTclasAddReq *p = (CsrWifiRouterCtrlTclasAddReq *)message; CsrWifiRouterCtrlTclasAddReq *p = (CsrWifiRouterCtrlTclasAddReq *)message;
CsrPmemFree(p->tclas); kfree(p->tclas);
p->tclas = NULL; p->tclas = NULL;
break; break;
} }
case CSR_WIFI_ROUTER_CTRL_TCLAS_DEL_REQ: case CSR_WIFI_ROUTER_CTRL_TCLAS_DEL_REQ:
{ {
CsrWifiRouterCtrlTclasDelReq *p = (CsrWifiRouterCtrlTclasDelReq *)message; CsrWifiRouterCtrlTclasDelReq *p = (CsrWifiRouterCtrlTclasDelReq *)message;
CsrPmemFree(p->tclas); kfree(p->tclas);
p->tclas = NULL; p->tclas = NULL;
break; break;
} }
case CSR_WIFI_ROUTER_CTRL_WIFI_ON_REQ: case CSR_WIFI_ROUTER_CTRL_WIFI_ON_REQ:
{ {
CsrWifiRouterCtrlWifiOnReq *p = (CsrWifiRouterCtrlWifiOnReq *)message; CsrWifiRouterCtrlWifiOnReq *p = (CsrWifiRouterCtrlWifiOnReq *)message;
CsrPmemFree(p->data); kfree(p->data);
p->data = NULL; p->data = NULL;
break; break;
} }
case CSR_WIFI_ROUTER_CTRL_WIFI_ON_RES: case CSR_WIFI_ROUTER_CTRL_WIFI_ON_RES:
{ {
CsrWifiRouterCtrlWifiOnRes *p = (CsrWifiRouterCtrlWifiOnRes *)message; CsrWifiRouterCtrlWifiOnRes *p = (CsrWifiRouterCtrlWifiOnRes *)message;
CsrPmemFree(p->smeVersions.smeBuild); kfree(p->smeVersions.smeBuild);
p->smeVersions.smeBuild = NULL; p->smeVersions.smeBuild = NULL;
break; break;
} }
case CSR_WIFI_ROUTER_CTRL_WAPI_RX_PKT_REQ: case CSR_WIFI_ROUTER_CTRL_WAPI_RX_PKT_REQ:
{ {
CsrWifiRouterCtrlWapiRxPktReq *p = (CsrWifiRouterCtrlWapiRxPktReq *)message; CsrWifiRouterCtrlWapiRxPktReq *p = (CsrWifiRouterCtrlWapiRxPktReq *)message;
CsrPmemFree(p->signal); kfree(p->signal);
p->signal = NULL; p->signal = NULL;
CsrPmemFree(p->data); kfree(p->data);
p->data = NULL; p->data = NULL;
break; break;
} }
case CSR_WIFI_ROUTER_CTRL_WAPI_UNICAST_TX_PKT_REQ: case CSR_WIFI_ROUTER_CTRL_WAPI_UNICAST_TX_PKT_REQ:
{ {
CsrWifiRouterCtrlWapiUnicastTxPktReq *p = (CsrWifiRouterCtrlWapiUnicastTxPktReq *)message; CsrWifiRouterCtrlWapiUnicastTxPktReq *p = (CsrWifiRouterCtrlWapiUnicastTxPktReq *)message;
CsrPmemFree(p->data); kfree(p->data);
p->data = NULL; p->data = NULL;
break; break;
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*****************************************************************************/ *****************************************************************************/
/* Note: this is an auto-generated file. */ /* Note: this is an auto-generated file. */
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_wifi_router_ctrl_prim.h" #include "csr_wifi_router_ctrl_prim.h"
#include "csr_wifi_router_ctrl_lib.h" #include "csr_wifi_router_ctrl_lib.h"
...@@ -41,41 +41,41 @@ void CsrWifiRouterCtrlFreeUpstreamMessageContents(u16 eventClass, void *message) ...@@ -41,41 +41,41 @@ void CsrWifiRouterCtrlFreeUpstreamMessageContents(u16 eventClass, void *message)
case CSR_WIFI_ROUTER_CTRL_HIP_IND: case CSR_WIFI_ROUTER_CTRL_HIP_IND:
{ {
CsrWifiRouterCtrlHipInd *p = (CsrWifiRouterCtrlHipInd *)message; CsrWifiRouterCtrlHipInd *p = (CsrWifiRouterCtrlHipInd *)message;
CsrPmemFree(p->mlmeCommand); kfree(p->mlmeCommand);
p->mlmeCommand = NULL; p->mlmeCommand = NULL;
CsrPmemFree(p->dataRef1); kfree(p->dataRef1);
p->dataRef1 = NULL; p->dataRef1 = NULL;
CsrPmemFree(p->dataRef2); kfree(p->dataRef2);
p->dataRef2 = NULL; p->dataRef2 = NULL;
break; break;
} }
case CSR_WIFI_ROUTER_CTRL_MULTICAST_ADDRESS_IND: case CSR_WIFI_ROUTER_CTRL_MULTICAST_ADDRESS_IND:
{ {
CsrWifiRouterCtrlMulticastAddressInd *p = (CsrWifiRouterCtrlMulticastAddressInd *)message; CsrWifiRouterCtrlMulticastAddressInd *p = (CsrWifiRouterCtrlMulticastAddressInd *)message;
CsrPmemFree(p->setAddresses); kfree(p->setAddresses);
p->setAddresses = NULL; p->setAddresses = NULL;
break; break;
} }
case CSR_WIFI_ROUTER_CTRL_WIFI_ON_IND: case CSR_WIFI_ROUTER_CTRL_WIFI_ON_IND:
{ {
CsrWifiRouterCtrlWifiOnInd *p = (CsrWifiRouterCtrlWifiOnInd *)message; CsrWifiRouterCtrlWifiOnInd *p = (CsrWifiRouterCtrlWifiOnInd *)message;
CsrPmemFree(p->versions.routerBuild); kfree(p->versions.routerBuild);
p->versions.routerBuild = NULL; p->versions.routerBuild = NULL;
break; break;
} }
case CSR_WIFI_ROUTER_CTRL_WAPI_RX_MIC_CHECK_IND: case CSR_WIFI_ROUTER_CTRL_WAPI_RX_MIC_CHECK_IND:
{ {
CsrWifiRouterCtrlWapiRxMicCheckInd *p = (CsrWifiRouterCtrlWapiRxMicCheckInd *)message; CsrWifiRouterCtrlWapiRxMicCheckInd *p = (CsrWifiRouterCtrlWapiRxMicCheckInd *)message;
CsrPmemFree(p->signal); kfree(p->signal);
p->signal = NULL; p->signal = NULL;
CsrPmemFree(p->data); kfree(p->data);
p->data = NULL; p->data = NULL;
break; break;
} }
case CSR_WIFI_ROUTER_CTRL_WAPI_UNICAST_TX_ENCRYPT_IND: case CSR_WIFI_ROUTER_CTRL_WAPI_UNICAST_TX_ENCRYPT_IND:
{ {
CsrWifiRouterCtrlWapiUnicastTxEncryptInd *p = (CsrWifiRouterCtrlWapiUnicastTxEncryptInd *)message; CsrWifiRouterCtrlWapiUnicastTxEncryptInd *p = (CsrWifiRouterCtrlWapiUnicastTxEncryptInd *)message;
CsrPmemFree(p->data); kfree(p->data);
p->data = NULL; p->data = NULL;
break; break;
} }
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
/* Note: this is an auto-generated file. */ /* Note: this is an auto-generated file. */
#include <linux/string.h> #include <linux/string.h>
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_msgconv.h" #include "csr_msgconv.h"
#include "csr_unicode.h" #include "csr_unicode.h"
...@@ -20,7 +21,7 @@ ...@@ -20,7 +21,7 @@
void CsrWifiRouterCtrlPfree(void *ptr) void CsrWifiRouterCtrlPfree(void *ptr)
{ {
CsrPmemFree(ptr); kfree(ptr);
} }
...@@ -148,10 +149,10 @@ void* CsrWifiRouterCtrlHipReqDes(u8 *buffer, size_t length) ...@@ -148,10 +149,10 @@ void* CsrWifiRouterCtrlHipReqDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlHipReqSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlHipReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlHipReq *primitive = (CsrWifiRouterCtrlHipReq *) voidPrimitivePointer; CsrWifiRouterCtrlHipReq *primitive = (CsrWifiRouterCtrlHipReq *) voidPrimitivePointer;
CsrPmemFree(primitive->mlmeCommand); kfree(primitive->mlmeCommand);
CsrPmemFree(primitive->dataRef1); kfree(primitive->dataRef1);
CsrPmemFree(primitive->dataRef2); kfree(primitive->dataRef2);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -269,8 +270,8 @@ void* CsrWifiRouterCtrlMulticastAddressResDes(u8 *buffer, size_t length) ...@@ -269,8 +270,8 @@ void* CsrWifiRouterCtrlMulticastAddressResDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlMulticastAddressResSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlMulticastAddressResSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlMulticastAddressRes *primitive = (CsrWifiRouterCtrlMulticastAddressRes *) voidPrimitivePointer; CsrWifiRouterCtrlMulticastAddressRes *primitive = (CsrWifiRouterCtrlMulticastAddressRes *) voidPrimitivePointer;
CsrPmemFree(primitive->getAddresses); kfree(primitive->getAddresses);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -457,8 +458,8 @@ void* CsrWifiRouterCtrlTclasAddReqDes(u8 *buffer, size_t length) ...@@ -457,8 +458,8 @@ void* CsrWifiRouterCtrlTclasAddReqDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlTclasAddReqSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlTclasAddReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlTclasAddReq *primitive = (CsrWifiRouterCtrlTclasAddReq *) voidPrimitivePointer; CsrWifiRouterCtrlTclasAddReq *primitive = (CsrWifiRouterCtrlTclasAddReq *) voidPrimitivePointer;
CsrPmemFree(primitive->tclas); kfree(primitive->tclas);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -555,8 +556,8 @@ void* CsrWifiRouterCtrlTclasDelReqDes(u8 *buffer, size_t length) ...@@ -555,8 +556,8 @@ void* CsrWifiRouterCtrlTclasDelReqDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlTclasDelReqSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlTclasDelReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlTclasDelReq *primitive = (CsrWifiRouterCtrlTclasDelReq *) voidPrimitivePointer; CsrWifiRouterCtrlTclasDelReq *primitive = (CsrWifiRouterCtrlTclasDelReq *) voidPrimitivePointer;
CsrPmemFree(primitive->tclas); kfree(primitive->tclas);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -710,8 +711,8 @@ void* CsrWifiRouterCtrlWifiOnReqDes(u8 *buffer, size_t length) ...@@ -710,8 +711,8 @@ void* CsrWifiRouterCtrlWifiOnReqDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlWifiOnReqSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlWifiOnReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlWifiOnReq *primitive = (CsrWifiRouterCtrlWifiOnReq *) voidPrimitivePointer; CsrWifiRouterCtrlWifiOnReq *primitive = (CsrWifiRouterCtrlWifiOnReq *) voidPrimitivePointer;
CsrPmemFree(primitive->data); kfree(primitive->data);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -791,8 +792,8 @@ void* CsrWifiRouterCtrlWifiOnResDes(u8 *buffer, size_t length) ...@@ -791,8 +792,8 @@ void* CsrWifiRouterCtrlWifiOnResDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlWifiOnResSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlWifiOnResSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlWifiOnRes *primitive = (CsrWifiRouterCtrlWifiOnRes *) voidPrimitivePointer; CsrWifiRouterCtrlWifiOnRes *primitive = (CsrWifiRouterCtrlWifiOnRes *) voidPrimitivePointer;
CsrPmemFree(primitive->smeVersions.smeBuild); kfree(primitive->smeVersions.smeBuild);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1185,9 +1186,9 @@ void* CsrWifiRouterCtrlWapiRxPktReqDes(u8 *buffer, size_t length) ...@@ -1185,9 +1186,9 @@ void* CsrWifiRouterCtrlWapiRxPktReqDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlWapiRxPktReqSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlWapiRxPktReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlWapiRxPktReq *primitive = (CsrWifiRouterCtrlWapiRxPktReq *) voidPrimitivePointer; CsrWifiRouterCtrlWapiRxPktReq *primitive = (CsrWifiRouterCtrlWapiRxPktReq *) voidPrimitivePointer;
CsrPmemFree(primitive->signal); kfree(primitive->signal);
CsrPmemFree(primitive->data); kfree(primitive->data);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1245,8 +1246,8 @@ void* CsrWifiRouterCtrlWapiUnicastTxPktReqDes(u8 *buffer, size_t length) ...@@ -1245,8 +1246,8 @@ void* CsrWifiRouterCtrlWapiUnicastTxPktReqDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlWapiUnicastTxPktReqSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlWapiUnicastTxPktReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlWapiUnicastTxPktReq *primitive = (CsrWifiRouterCtrlWapiUnicastTxPktReq *) voidPrimitivePointer; CsrWifiRouterCtrlWapiUnicastTxPktReq *primitive = (CsrWifiRouterCtrlWapiUnicastTxPktReq *) voidPrimitivePointer;
CsrPmemFree(primitive->data); kfree(primitive->data);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1335,10 +1336,10 @@ void* CsrWifiRouterCtrlHipIndDes(u8 *buffer, size_t length) ...@@ -1335,10 +1336,10 @@ void* CsrWifiRouterCtrlHipIndDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlHipIndSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlHipIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlHipInd *primitive = (CsrWifiRouterCtrlHipInd *) voidPrimitivePointer; CsrWifiRouterCtrlHipInd *primitive = (CsrWifiRouterCtrlHipInd *) voidPrimitivePointer;
CsrPmemFree(primitive->mlmeCommand); kfree(primitive->mlmeCommand);
CsrPmemFree(primitive->dataRef1); kfree(primitive->dataRef1);
CsrPmemFree(primitive->dataRef2); kfree(primitive->dataRef2);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1414,8 +1415,8 @@ void* CsrWifiRouterCtrlMulticastAddressIndDes(u8 *buffer, size_t length) ...@@ -1414,8 +1415,8 @@ void* CsrWifiRouterCtrlMulticastAddressIndDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlMulticastAddressIndSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlMulticastAddressIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlMulticastAddressInd *primitive = (CsrWifiRouterCtrlMulticastAddressInd *) voidPrimitivePointer; CsrWifiRouterCtrlMulticastAddressInd *primitive = (CsrWifiRouterCtrlMulticastAddressInd *) voidPrimitivePointer;
CsrPmemFree(primitive->setAddresses); kfree(primitive->setAddresses);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1839,8 +1840,8 @@ void* CsrWifiRouterCtrlWifiOnIndDes(u8 *buffer, size_t length) ...@@ -1839,8 +1840,8 @@ void* CsrWifiRouterCtrlWifiOnIndDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlWifiOnIndSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlWifiOnIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlWifiOnInd *primitive = (CsrWifiRouterCtrlWifiOnInd *) voidPrimitivePointer; CsrWifiRouterCtrlWifiOnInd *primitive = (CsrWifiRouterCtrlWifiOnInd *) voidPrimitivePointer;
CsrPmemFree(primitive->versions.routerBuild); kfree(primitive->versions.routerBuild);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -2482,9 +2483,9 @@ void* CsrWifiRouterCtrlWapiRxMicCheckIndDes(u8 *buffer, size_t length) ...@@ -2482,9 +2483,9 @@ void* CsrWifiRouterCtrlWapiRxMicCheckIndDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlWapiRxMicCheckIndSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlWapiRxMicCheckIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlWapiRxMicCheckInd *primitive = (CsrWifiRouterCtrlWapiRxMicCheckInd *) voidPrimitivePointer; CsrWifiRouterCtrlWapiRxMicCheckInd *primitive = (CsrWifiRouterCtrlWapiRxMicCheckInd *) voidPrimitivePointer;
CsrPmemFree(primitive->signal); kfree(primitive->signal);
CsrPmemFree(primitive->data); kfree(primitive->data);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -2587,8 +2588,8 @@ void* CsrWifiRouterCtrlWapiUnicastTxEncryptIndDes(u8 *buffer, size_t length) ...@@ -2587,8 +2588,8 @@ void* CsrWifiRouterCtrlWapiUnicastTxEncryptIndDes(u8 *buffer, size_t length)
void CsrWifiRouterCtrlWapiUnicastTxEncryptIndSerFree(void *voidPrimitivePointer) void CsrWifiRouterCtrlWapiUnicastTxEncryptIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterCtrlWapiUnicastTxEncryptInd *primitive = (CsrWifiRouterCtrlWapiUnicastTxEncryptInd *) voidPrimitivePointer; CsrWifiRouterCtrlWapiUnicastTxEncryptInd *primitive = (CsrWifiRouterCtrlWapiUnicastTxEncryptInd *) voidPrimitivePointer;
CsrPmemFree(primitive->data); kfree(primitive->data);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*****************************************************************************/ *****************************************************************************/
/* Note: this is an auto-generated file. */ /* Note: this is an auto-generated file. */
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_wifi_router_prim.h" #include "csr_wifi_router_prim.h"
#include "csr_wifi_router_lib.h" #include "csr_wifi_router_lib.h"
...@@ -41,7 +41,7 @@ void CsrWifiRouterFreeDownstreamMessageContents(u16 eventClass, void *message) ...@@ -41,7 +41,7 @@ void CsrWifiRouterFreeDownstreamMessageContents(u16 eventClass, void *message)
case CSR_WIFI_ROUTER_MA_PACKET_REQ: case CSR_WIFI_ROUTER_MA_PACKET_REQ:
{ {
CsrWifiRouterMaPacketReq *p = (CsrWifiRouterMaPacketReq *)message; CsrWifiRouterMaPacketReq *p = (CsrWifiRouterMaPacketReq *)message;
CsrPmemFree(p->frame); kfree(p->frame);
p->frame = NULL; p->frame = NULL;
break; break;
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*****************************************************************************/ *****************************************************************************/
/* Note: this is an auto-generated file. */ /* Note: this is an auto-generated file. */
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_wifi_router_prim.h" #include "csr_wifi_router_prim.h"
#include "csr_wifi_router_lib.h" #include "csr_wifi_router_lib.h"
...@@ -41,7 +41,7 @@ void CsrWifiRouterFreeUpstreamMessageContents(u16 eventClass, void *message) ...@@ -41,7 +41,7 @@ void CsrWifiRouterFreeUpstreamMessageContents(u16 eventClass, void *message)
case CSR_WIFI_ROUTER_MA_PACKET_IND: case CSR_WIFI_ROUTER_MA_PACKET_IND:
{ {
CsrWifiRouterMaPacketInd *p = (CsrWifiRouterMaPacketInd *)message; CsrWifiRouterMaPacketInd *p = (CsrWifiRouterMaPacketInd *)message;
CsrPmemFree(p->frame); kfree(p->frame);
p->frame = NULL; p->frame = NULL;
break; break;
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*****************************************************************************/ *****************************************************************************/
/* Note: this is an auto-generated file. */ /* Note: this is an auto-generated file. */
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_msgconv.h" #include "csr_msgconv.h"
#include "csr_unicode.h" #include "csr_unicode.h"
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
void CsrWifiRouterPfree(void *ptr) void CsrWifiRouterPfree(void *ptr)
{ {
CsrPmemFree(ptr); kfree(ptr);
} }
...@@ -136,8 +136,8 @@ void* CsrWifiRouterMaPacketReqDes(u8 *buffer, size_t length) ...@@ -136,8 +136,8 @@ void* CsrWifiRouterMaPacketReqDes(u8 *buffer, size_t length)
void CsrWifiRouterMaPacketReqSerFree(void *voidPrimitivePointer) void CsrWifiRouterMaPacketReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterMaPacketReq *primitive = (CsrWifiRouterMaPacketReq *) voidPrimitivePointer; CsrWifiRouterMaPacketReq *primitive = (CsrWifiRouterMaPacketReq *) voidPrimitivePointer;
CsrPmemFree(primitive->frame); kfree(primitive->frame);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -415,8 +415,8 @@ void* CsrWifiRouterMaPacketIndDes(u8 *buffer, size_t length) ...@@ -415,8 +415,8 @@ void* CsrWifiRouterMaPacketIndDes(u8 *buffer, size_t length)
void CsrWifiRouterMaPacketIndSerFree(void *voidPrimitivePointer) void CsrWifiRouterMaPacketIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiRouterMaPacketInd *primitive = (CsrWifiRouterMaPacketInd *) voidPrimitivePointer; CsrWifiRouterMaPacketInd *primitive = (CsrWifiRouterMaPacketInd *) voidPrimitivePointer;
CsrPmemFree(primitive->frame); kfree(primitive->frame);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -155,7 +155,7 @@ void CsrWifiRouterTransportRecv(unifi_priv_t *priv, u8* buffer, size_t bufferLen ...@@ -155,7 +155,7 @@ void CsrWifiRouterTransportRecv(unifi_priv_t *priv, u8* buffer, size_t bufferLen
unifi_error(priv, "CsrWifiRouterTransportDeserialiseAndSend unhandled prim type 0x%.4X\n", primType); unifi_error(priv, "CsrWifiRouterTransportDeserialiseAndSend unhandled prim type 0x%.4X\n", primType);
break; break;
} }
CsrPmemFree(msg); kfree(msg);
} }
static void CsrWifiRouterTransportSerialiseAndSend(u16 primType, void* msg) static void CsrWifiRouterTransportSerialiseAndSend(u16 primType, void* msg)
...@@ -193,7 +193,7 @@ static void CsrWifiRouterTransportSerialiseAndSend(u16 primType, void* msg) ...@@ -193,7 +193,7 @@ static void CsrWifiRouterTransportSerialiseAndSend(u16 primType, void* msg)
uf_sme_queue_message(drvpriv, encodeBuffer, encodeBufferLen); uf_sme_queue_message(drvpriv, encodeBuffer, encodeBufferLen);
/* Do not use msgEntry->freeFunc because the memory is owned by the driver */ /* Do not use msgEntry->freeFunc because the memory is owned by the driver */
CsrPmemFree(msg); kfree(msg);
} }
#if defined(CSR_LOG_ENABLE) && defined(CSR_LOG_INCLUDE_FILE_NAME_AND_LINE_NUMBER) #if defined(CSR_LOG_ENABLE) && defined(CSR_LOG_INCLUDE_FILE_NAME_AND_LINE_NUMBER)
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*****************************************************************************/ *****************************************************************************/
/* Note: this is an auto-generated file. */ /* Note: this is an auto-generated file. */
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_wifi_sme_prim.h" #include "csr_wifi_sme_prim.h"
#include "csr_wifi_sme_lib.h" #include "csr_wifi_sme_lib.h"
...@@ -41,90 +41,90 @@ void CsrWifiSmeFreeDownstreamMessageContents(u16 eventClass, void *message) ...@@ -41,90 +41,90 @@ void CsrWifiSmeFreeDownstreamMessageContents(u16 eventClass, void *message)
case CSR_WIFI_SME_BLACKLIST_REQ: case CSR_WIFI_SME_BLACKLIST_REQ:
{ {
CsrWifiSmeBlacklistReq *p = (CsrWifiSmeBlacklistReq *)message; CsrWifiSmeBlacklistReq *p = (CsrWifiSmeBlacklistReq *)message;
CsrPmemFree(p->setAddresses); kfree(p->setAddresses);
p->setAddresses = NULL; p->setAddresses = NULL;
break; break;
} }
case CSR_WIFI_SME_CALIBRATION_DATA_SET_REQ: case CSR_WIFI_SME_CALIBRATION_DATA_SET_REQ:
{ {
CsrWifiSmeCalibrationDataSetReq *p = (CsrWifiSmeCalibrationDataSetReq *)message; CsrWifiSmeCalibrationDataSetReq *p = (CsrWifiSmeCalibrationDataSetReq *)message;
CsrPmemFree(p->calibrationData); kfree(p->calibrationData);
p->calibrationData = NULL; p->calibrationData = NULL;
break; break;
} }
case CSR_WIFI_SME_CONNECT_REQ: case CSR_WIFI_SME_CONNECT_REQ:
{ {
CsrWifiSmeConnectReq *p = (CsrWifiSmeConnectReq *)message; CsrWifiSmeConnectReq *p = (CsrWifiSmeConnectReq *)message;
CsrPmemFree(p->connectionConfig.mlmeAssociateReqInformationElements); kfree(p->connectionConfig.mlmeAssociateReqInformationElements);
p->connectionConfig.mlmeAssociateReqInformationElements = NULL; p->connectionConfig.mlmeAssociateReqInformationElements = NULL;
break; break;
} }
case CSR_WIFI_SME_MIB_GET_NEXT_REQ: case CSR_WIFI_SME_MIB_GET_NEXT_REQ:
{ {
CsrWifiSmeMibGetNextReq *p = (CsrWifiSmeMibGetNextReq *)message; CsrWifiSmeMibGetNextReq *p = (CsrWifiSmeMibGetNextReq *)message;
CsrPmemFree(p->mibAttribute); kfree(p->mibAttribute);
p->mibAttribute = NULL; p->mibAttribute = NULL;
break; break;
} }
case CSR_WIFI_SME_MIB_GET_REQ: case CSR_WIFI_SME_MIB_GET_REQ:
{ {
CsrWifiSmeMibGetReq *p = (CsrWifiSmeMibGetReq *)message; CsrWifiSmeMibGetReq *p = (CsrWifiSmeMibGetReq *)message;
CsrPmemFree(p->mibAttribute); kfree(p->mibAttribute);
p->mibAttribute = NULL; p->mibAttribute = NULL;
break; break;
} }
case CSR_WIFI_SME_MIB_SET_REQ: case CSR_WIFI_SME_MIB_SET_REQ:
{ {
CsrWifiSmeMibSetReq *p = (CsrWifiSmeMibSetReq *)message; CsrWifiSmeMibSetReq *p = (CsrWifiSmeMibSetReq *)message;
CsrPmemFree(p->mibAttribute); kfree(p->mibAttribute);
p->mibAttribute = NULL; p->mibAttribute = NULL;
break; break;
} }
case CSR_WIFI_SME_MULTICAST_ADDRESS_REQ: case CSR_WIFI_SME_MULTICAST_ADDRESS_REQ:
{ {
CsrWifiSmeMulticastAddressReq *p = (CsrWifiSmeMulticastAddressReq *)message; CsrWifiSmeMulticastAddressReq *p = (CsrWifiSmeMulticastAddressReq *)message;
CsrPmemFree(p->setAddresses); kfree(p->setAddresses);
p->setAddresses = NULL; p->setAddresses = NULL;
break; break;
} }
case CSR_WIFI_SME_PACKET_FILTER_SET_REQ: case CSR_WIFI_SME_PACKET_FILTER_SET_REQ:
{ {
CsrWifiSmePacketFilterSetReq *p = (CsrWifiSmePacketFilterSetReq *)message; CsrWifiSmePacketFilterSetReq *p = (CsrWifiSmePacketFilterSetReq *)message;
CsrPmemFree(p->filter); kfree(p->filter);
p->filter = NULL; p->filter = NULL;
break; break;
} }
case CSR_WIFI_SME_PMKID_REQ: case CSR_WIFI_SME_PMKID_REQ:
{ {
CsrWifiSmePmkidReq *p = (CsrWifiSmePmkidReq *)message; CsrWifiSmePmkidReq *p = (CsrWifiSmePmkidReq *)message;
CsrPmemFree(p->setPmkids); kfree(p->setPmkids);
p->setPmkids = NULL; p->setPmkids = NULL;
break; break;
} }
case CSR_WIFI_SME_SCAN_CONFIG_SET_REQ: case CSR_WIFI_SME_SCAN_CONFIG_SET_REQ:
{ {
CsrWifiSmeScanConfigSetReq *p = (CsrWifiSmeScanConfigSetReq *)message; CsrWifiSmeScanConfigSetReq *p = (CsrWifiSmeScanConfigSetReq *)message;
CsrPmemFree(p->scanConfig.passiveChannelList); kfree(p->scanConfig.passiveChannelList);
p->scanConfig.passiveChannelList = NULL; p->scanConfig.passiveChannelList = NULL;
break; break;
} }
case CSR_WIFI_SME_SCAN_FULL_REQ: case CSR_WIFI_SME_SCAN_FULL_REQ:
{ {
CsrWifiSmeScanFullReq *p = (CsrWifiSmeScanFullReq *)message; CsrWifiSmeScanFullReq *p = (CsrWifiSmeScanFullReq *)message;
CsrPmemFree(p->ssid); kfree(p->ssid);
p->ssid = NULL; p->ssid = NULL;
CsrPmemFree(p->channelList); kfree(p->channelList);
p->channelList = NULL; p->channelList = NULL;
CsrPmemFree(p->probeIe); kfree(p->probeIe);
p->probeIe = NULL; p->probeIe = NULL;
break; break;
} }
case CSR_WIFI_SME_TSPEC_REQ: case CSR_WIFI_SME_TSPEC_REQ:
{ {
CsrWifiSmeTspecReq *p = (CsrWifiSmeTspecReq *)message; CsrWifiSmeTspecReq *p = (CsrWifiSmeTspecReq *)message;
CsrPmemFree(p->tspec); kfree(p->tspec);
p->tspec = NULL; p->tspec = NULL;
CsrPmemFree(p->tclas); kfree(p->tclas);
p->tclas = NULL; p->tclas = NULL;
break; break;
} }
...@@ -135,11 +135,11 @@ void CsrWifiSmeFreeDownstreamMessageContents(u16 eventClass, void *message) ...@@ -135,11 +135,11 @@ void CsrWifiSmeFreeDownstreamMessageContents(u16 eventClass, void *message)
u16 i1; u16 i1;
for (i1 = 0; i1 < p->mibFilesCount; i1++) for (i1 = 0; i1 < p->mibFilesCount; i1++)
{ {
CsrPmemFree(p->mibFiles[i1].data); kfree(p->mibFiles[i1].data);
p->mibFiles[i1].data = NULL; p->mibFiles[i1].data = NULL;
} }
} }
CsrPmemFree(p->mibFiles); kfree(p->mibFiles);
p->mibFiles = NULL; p->mibFiles = NULL;
break; break;
} }
...@@ -150,32 +150,32 @@ void CsrWifiSmeFreeDownstreamMessageContents(u16 eventClass, void *message) ...@@ -150,32 +150,32 @@ void CsrWifiSmeFreeDownstreamMessageContents(u16 eventClass, void *message)
u16 i1; u16 i1;
for (i1 = 0; i1 < p->mibFilesCount; i1++) for (i1 = 0; i1 < p->mibFilesCount; i1++)
{ {
CsrPmemFree(p->mibFiles[i1].data); kfree(p->mibFiles[i1].data);
p->mibFiles[i1].data = NULL; p->mibFiles[i1].data = NULL;
} }
} }
CsrPmemFree(p->mibFiles); kfree(p->mibFiles);
p->mibFiles = NULL; p->mibFiles = NULL;
break; break;
} }
case CSR_WIFI_SME_CLOAKED_SSIDS_SET_REQ: case CSR_WIFI_SME_CLOAKED_SSIDS_SET_REQ:
{ {
CsrWifiSmeCloakedSsidsSetReq *p = (CsrWifiSmeCloakedSsidsSetReq *)message; CsrWifiSmeCloakedSsidsSetReq *p = (CsrWifiSmeCloakedSsidsSetReq *)message;
CsrPmemFree(p->cloakedSsids.cloakedSsids); kfree(p->cloakedSsids.cloakedSsids);
p->cloakedSsids.cloakedSsids = NULL; p->cloakedSsids.cloakedSsids = NULL;
break; break;
} }
case CSR_WIFI_SME_WPS_CONFIGURATION_REQ: case CSR_WIFI_SME_WPS_CONFIGURATION_REQ:
{ {
CsrWifiSmeWpsConfigurationReq *p = (CsrWifiSmeWpsConfigurationReq *)message; CsrWifiSmeWpsConfigurationReq *p = (CsrWifiSmeWpsConfigurationReq *)message;
CsrPmemFree(p->wpsConfig.secondaryDeviceType); kfree(p->wpsConfig.secondaryDeviceType);
p->wpsConfig.secondaryDeviceType = NULL; p->wpsConfig.secondaryDeviceType = NULL;
break; break;
} }
case CSR_WIFI_SME_SET_REQ: case CSR_WIFI_SME_SET_REQ:
{ {
CsrWifiSmeSetReq *p = (CsrWifiSmeSetReq *)message; CsrWifiSmeSetReq *p = (CsrWifiSmeSetReq *)message;
CsrPmemFree(p->data); kfree(p->data);
p->data = NULL; p->data = NULL;
break; break;
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*****************************************************************************/ *****************************************************************************/
/* Note: this is an auto-generated file. */ /* Note: this is an auto-generated file. */
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_wifi_sme_prim.h" #include "csr_wifi_sme_prim.h"
#include "csr_wifi_sme_lib.h" #include "csr_wifi_sme_lib.h"
...@@ -41,121 +41,121 @@ void CsrWifiSmeFreeUpstreamMessageContents(u16 eventClass, void *message) ...@@ -41,121 +41,121 @@ void CsrWifiSmeFreeUpstreamMessageContents(u16 eventClass, void *message)
case CSR_WIFI_SME_ASSOCIATION_COMPLETE_IND: case CSR_WIFI_SME_ASSOCIATION_COMPLETE_IND:
{ {
CsrWifiSmeAssociationCompleteInd *p = (CsrWifiSmeAssociationCompleteInd *)message; CsrWifiSmeAssociationCompleteInd *p = (CsrWifiSmeAssociationCompleteInd *)message;
CsrPmemFree(p->connectionInfo.beaconFrame); kfree(p->connectionInfo.beaconFrame);
p->connectionInfo.beaconFrame = NULL; p->connectionInfo.beaconFrame = NULL;
CsrPmemFree(p->connectionInfo.associationReqFrame); kfree(p->connectionInfo.associationReqFrame);
p->connectionInfo.associationReqFrame = NULL; p->connectionInfo.associationReqFrame = NULL;
CsrPmemFree(p->connectionInfo.associationRspFrame); kfree(p->connectionInfo.associationRspFrame);
p->connectionInfo.associationRspFrame = NULL; p->connectionInfo.associationRspFrame = NULL;
CsrPmemFree(p->connectionInfo.assocScanInfoElements); kfree(p->connectionInfo.assocScanInfoElements);
p->connectionInfo.assocScanInfoElements = NULL; p->connectionInfo.assocScanInfoElements = NULL;
CsrPmemFree(p->connectionInfo.assocReqInfoElements); kfree(p->connectionInfo.assocReqInfoElements);
p->connectionInfo.assocReqInfoElements = NULL; p->connectionInfo.assocReqInfoElements = NULL;
CsrPmemFree(p->connectionInfo.assocRspInfoElements); kfree(p->connectionInfo.assocRspInfoElements);
p->connectionInfo.assocRspInfoElements = NULL; p->connectionInfo.assocRspInfoElements = NULL;
break; break;
} }
case CSR_WIFI_SME_BLACKLIST_CFM: case CSR_WIFI_SME_BLACKLIST_CFM:
{ {
CsrWifiSmeBlacklistCfm *p = (CsrWifiSmeBlacklistCfm *)message; CsrWifiSmeBlacklistCfm *p = (CsrWifiSmeBlacklistCfm *)message;
CsrPmemFree(p->getAddresses); kfree(p->getAddresses);
p->getAddresses = NULL; p->getAddresses = NULL;
break; break;
} }
case CSR_WIFI_SME_CALIBRATION_DATA_GET_CFM: case CSR_WIFI_SME_CALIBRATION_DATA_GET_CFM:
{ {
CsrWifiSmeCalibrationDataGetCfm *p = (CsrWifiSmeCalibrationDataGetCfm *)message; CsrWifiSmeCalibrationDataGetCfm *p = (CsrWifiSmeCalibrationDataGetCfm *)message;
CsrPmemFree(p->calibrationData); kfree(p->calibrationData);
p->calibrationData = NULL; p->calibrationData = NULL;
break; break;
} }
case CSR_WIFI_SME_CONNECTION_CONFIG_GET_CFM: case CSR_WIFI_SME_CONNECTION_CONFIG_GET_CFM:
{ {
CsrWifiSmeConnectionConfigGetCfm *p = (CsrWifiSmeConnectionConfigGetCfm *)message; CsrWifiSmeConnectionConfigGetCfm *p = (CsrWifiSmeConnectionConfigGetCfm *)message;
CsrPmemFree(p->connectionConfig.mlmeAssociateReqInformationElements); kfree(p->connectionConfig.mlmeAssociateReqInformationElements);
p->connectionConfig.mlmeAssociateReqInformationElements = NULL; p->connectionConfig.mlmeAssociateReqInformationElements = NULL;
break; break;
} }
case CSR_WIFI_SME_CONNECTION_INFO_GET_CFM: case CSR_WIFI_SME_CONNECTION_INFO_GET_CFM:
{ {
CsrWifiSmeConnectionInfoGetCfm *p = (CsrWifiSmeConnectionInfoGetCfm *)message; CsrWifiSmeConnectionInfoGetCfm *p = (CsrWifiSmeConnectionInfoGetCfm *)message;
CsrPmemFree(p->connectionInfo.beaconFrame); kfree(p->connectionInfo.beaconFrame);
p->connectionInfo.beaconFrame = NULL; p->connectionInfo.beaconFrame = NULL;
CsrPmemFree(p->connectionInfo.associationReqFrame); kfree(p->connectionInfo.associationReqFrame);
p->connectionInfo.associationReqFrame = NULL; p->connectionInfo.associationReqFrame = NULL;
CsrPmemFree(p->connectionInfo.associationRspFrame); kfree(p->connectionInfo.associationRspFrame);
p->connectionInfo.associationRspFrame = NULL; p->connectionInfo.associationRspFrame = NULL;
CsrPmemFree(p->connectionInfo.assocScanInfoElements); kfree(p->connectionInfo.assocScanInfoElements);
p->connectionInfo.assocScanInfoElements = NULL; p->connectionInfo.assocScanInfoElements = NULL;
CsrPmemFree(p->connectionInfo.assocReqInfoElements); kfree(p->connectionInfo.assocReqInfoElements);
p->connectionInfo.assocReqInfoElements = NULL; p->connectionInfo.assocReqInfoElements = NULL;
CsrPmemFree(p->connectionInfo.assocRspInfoElements); kfree(p->connectionInfo.assocRspInfoElements);
p->connectionInfo.assocRspInfoElements = NULL; p->connectionInfo.assocRspInfoElements = NULL;
break; break;
} }
case CSR_WIFI_SME_MEDIA_STATUS_IND: case CSR_WIFI_SME_MEDIA_STATUS_IND:
{ {
CsrWifiSmeMediaStatusInd *p = (CsrWifiSmeMediaStatusInd *)message; CsrWifiSmeMediaStatusInd *p = (CsrWifiSmeMediaStatusInd *)message;
CsrPmemFree(p->connectionInfo.beaconFrame); kfree(p->connectionInfo.beaconFrame);
p->connectionInfo.beaconFrame = NULL; p->connectionInfo.beaconFrame = NULL;
CsrPmemFree(p->connectionInfo.associationReqFrame); kfree(p->connectionInfo.associationReqFrame);
p->connectionInfo.associationReqFrame = NULL; p->connectionInfo.associationReqFrame = NULL;
CsrPmemFree(p->connectionInfo.associationRspFrame); kfree(p->connectionInfo.associationRspFrame);
p->connectionInfo.associationRspFrame = NULL; p->connectionInfo.associationRspFrame = NULL;
CsrPmemFree(p->connectionInfo.assocScanInfoElements); kfree(p->connectionInfo.assocScanInfoElements);
p->connectionInfo.assocScanInfoElements = NULL; p->connectionInfo.assocScanInfoElements = NULL;
CsrPmemFree(p->connectionInfo.assocReqInfoElements); kfree(p->connectionInfo.assocReqInfoElements);
p->connectionInfo.assocReqInfoElements = NULL; p->connectionInfo.assocReqInfoElements = NULL;
CsrPmemFree(p->connectionInfo.assocRspInfoElements); kfree(p->connectionInfo.assocRspInfoElements);
p->connectionInfo.assocRspInfoElements = NULL; p->connectionInfo.assocRspInfoElements = NULL;
break; break;
} }
case CSR_WIFI_SME_MIB_GET_CFM: case CSR_WIFI_SME_MIB_GET_CFM:
{ {
CsrWifiSmeMibGetCfm *p = (CsrWifiSmeMibGetCfm *)message; CsrWifiSmeMibGetCfm *p = (CsrWifiSmeMibGetCfm *)message;
CsrPmemFree(p->mibAttribute); kfree(p->mibAttribute);
p->mibAttribute = NULL; p->mibAttribute = NULL;
break; break;
} }
case CSR_WIFI_SME_MIB_GET_NEXT_CFM: case CSR_WIFI_SME_MIB_GET_NEXT_CFM:
{ {
CsrWifiSmeMibGetNextCfm *p = (CsrWifiSmeMibGetNextCfm *)message; CsrWifiSmeMibGetNextCfm *p = (CsrWifiSmeMibGetNextCfm *)message;
CsrPmemFree(p->mibAttribute); kfree(p->mibAttribute);
p->mibAttribute = NULL; p->mibAttribute = NULL;
break; break;
} }
case CSR_WIFI_SME_MULTICAST_ADDRESS_CFM: case CSR_WIFI_SME_MULTICAST_ADDRESS_CFM:
{ {
CsrWifiSmeMulticastAddressCfm *p = (CsrWifiSmeMulticastAddressCfm *)message; CsrWifiSmeMulticastAddressCfm *p = (CsrWifiSmeMulticastAddressCfm *)message;
CsrPmemFree(p->getAddresses); kfree(p->getAddresses);
p->getAddresses = NULL; p->getAddresses = NULL;
break; break;
} }
case CSR_WIFI_SME_PMKID_CANDIDATE_LIST_IND: case CSR_WIFI_SME_PMKID_CANDIDATE_LIST_IND:
{ {
CsrWifiSmePmkidCandidateListInd *p = (CsrWifiSmePmkidCandidateListInd *)message; CsrWifiSmePmkidCandidateListInd *p = (CsrWifiSmePmkidCandidateListInd *)message;
CsrPmemFree(p->pmkidCandidates); kfree(p->pmkidCandidates);
p->pmkidCandidates = NULL; p->pmkidCandidates = NULL;
break; break;
} }
case CSR_WIFI_SME_PMKID_CFM: case CSR_WIFI_SME_PMKID_CFM:
{ {
CsrWifiSmePmkidCfm *p = (CsrWifiSmePmkidCfm *)message; CsrWifiSmePmkidCfm *p = (CsrWifiSmePmkidCfm *)message;
CsrPmemFree(p->getPmkids); kfree(p->getPmkids);
p->getPmkids = NULL; p->getPmkids = NULL;
break; break;
} }
case CSR_WIFI_SME_SCAN_CONFIG_GET_CFM: case CSR_WIFI_SME_SCAN_CONFIG_GET_CFM:
{ {
CsrWifiSmeScanConfigGetCfm *p = (CsrWifiSmeScanConfigGetCfm *)message; CsrWifiSmeScanConfigGetCfm *p = (CsrWifiSmeScanConfigGetCfm *)message;
CsrPmemFree(p->scanConfig.passiveChannelList); kfree(p->scanConfig.passiveChannelList);
p->scanConfig.passiveChannelList = NULL; p->scanConfig.passiveChannelList = NULL;
break; break;
} }
case CSR_WIFI_SME_SCAN_RESULT_IND: case CSR_WIFI_SME_SCAN_RESULT_IND:
{ {
CsrWifiSmeScanResultInd *p = (CsrWifiSmeScanResultInd *)message; CsrWifiSmeScanResultInd *p = (CsrWifiSmeScanResultInd *)message;
CsrPmemFree(p->result.informationElements); kfree(p->result.informationElements);
p->result.informationElements = NULL; p->result.informationElements = NULL;
switch (p->result.p2pDeviceRole) switch (p->result.p2pDeviceRole)
{ {
...@@ -164,15 +164,15 @@ void CsrWifiSmeFreeUpstreamMessageContents(u16 eventClass, void *message) ...@@ -164,15 +164,15 @@ void CsrWifiSmeFreeUpstreamMessageContents(u16 eventClass, void *message)
u16 i4; u16 i4;
for (i4 = 0; i4 < p->result.deviceInfo.groupInfo.p2pClientInfoCount; i4++) for (i4 = 0; i4 < p->result.deviceInfo.groupInfo.p2pClientInfoCount; i4++)
{ {
CsrPmemFree(p->result.deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType); kfree(p->result.deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType);
p->result.deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType = NULL; p->result.deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType = NULL;
} }
} }
CsrPmemFree(p->result.deviceInfo.groupInfo.p2PClientInfo); kfree(p->result.deviceInfo.groupInfo.p2PClientInfo);
p->result.deviceInfo.groupInfo.p2PClientInfo = NULL; p->result.deviceInfo.groupInfo.p2PClientInfo = NULL;
break; break;
case CSR_WIFI_SME_P2P_ROLE_STANDALONE: case CSR_WIFI_SME_P2P_ROLE_STANDALONE:
CsrPmemFree(p->result.deviceInfo.standalonedevInfo.secDeviceType); kfree(p->result.deviceInfo.standalonedevInfo.secDeviceType);
p->result.deviceInfo.standalonedevInfo.secDeviceType = NULL; p->result.deviceInfo.standalonedevInfo.secDeviceType = NULL;
break; break;
default: default:
...@@ -187,7 +187,7 @@ void CsrWifiSmeFreeUpstreamMessageContents(u16 eventClass, void *message) ...@@ -187,7 +187,7 @@ void CsrWifiSmeFreeUpstreamMessageContents(u16 eventClass, void *message)
u16 i1; u16 i1;
for (i1 = 0; i1 < p->scanResultsCount; i1++) for (i1 = 0; i1 < p->scanResultsCount; i1++)
{ {
CsrPmemFree(p->scanResults[i1].informationElements); kfree(p->scanResults[i1].informationElements);
p->scanResults[i1].informationElements = NULL; p->scanResults[i1].informationElements = NULL;
switch (p->scanResults[i1].p2pDeviceRole) switch (p->scanResults[i1].p2pDeviceRole)
{ {
...@@ -196,15 +196,15 @@ void CsrWifiSmeFreeUpstreamMessageContents(u16 eventClass, void *message) ...@@ -196,15 +196,15 @@ void CsrWifiSmeFreeUpstreamMessageContents(u16 eventClass, void *message)
u16 i4; u16 i4;
for (i4 = 0; i4 < p->scanResults[i1].deviceInfo.groupInfo.p2pClientInfoCount; i4++) for (i4 = 0; i4 < p->scanResults[i1].deviceInfo.groupInfo.p2pClientInfoCount; i4++)
{ {
CsrPmemFree(p->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType); kfree(p->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType);
p->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType = NULL; p->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType = NULL;
} }
} }
CsrPmemFree(p->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo); kfree(p->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo);
p->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo = NULL; p->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo = NULL;
break; break;
case CSR_WIFI_SME_P2P_ROLE_STANDALONE: case CSR_WIFI_SME_P2P_ROLE_STANDALONE:
CsrPmemFree(p->scanResults[i1].deviceInfo.standalonedevInfo.secDeviceType); kfree(p->scanResults[i1].deviceInfo.standalonedevInfo.secDeviceType);
p->scanResults[i1].deviceInfo.standalonedevInfo.secDeviceType = NULL; p->scanResults[i1].deviceInfo.standalonedevInfo.secDeviceType = NULL;
break; break;
default: default:
...@@ -212,58 +212,58 @@ void CsrWifiSmeFreeUpstreamMessageContents(u16 eventClass, void *message) ...@@ -212,58 +212,58 @@ void CsrWifiSmeFreeUpstreamMessageContents(u16 eventClass, void *message)
} }
} }
} }
CsrPmemFree(p->scanResults); kfree(p->scanResults);
p->scanResults = NULL; p->scanResults = NULL;
break; break;
} }
case CSR_WIFI_SME_TSPEC_IND: case CSR_WIFI_SME_TSPEC_IND:
{ {
CsrWifiSmeTspecInd *p = (CsrWifiSmeTspecInd *)message; CsrWifiSmeTspecInd *p = (CsrWifiSmeTspecInd *)message;
CsrPmemFree(p->tspec); kfree(p->tspec);
p->tspec = NULL; p->tspec = NULL;
break; break;
} }
case CSR_WIFI_SME_TSPEC_CFM: case CSR_WIFI_SME_TSPEC_CFM:
{ {
CsrWifiSmeTspecCfm *p = (CsrWifiSmeTspecCfm *)message; CsrWifiSmeTspecCfm *p = (CsrWifiSmeTspecCfm *)message;
CsrPmemFree(p->tspec); kfree(p->tspec);
p->tspec = NULL; p->tspec = NULL;
break; break;
} }
case CSR_WIFI_SME_VERSIONS_GET_CFM: case CSR_WIFI_SME_VERSIONS_GET_CFM:
{ {
CsrWifiSmeVersionsGetCfm *p = (CsrWifiSmeVersionsGetCfm *)message; CsrWifiSmeVersionsGetCfm *p = (CsrWifiSmeVersionsGetCfm *)message;
CsrPmemFree(p->versions.routerBuild); kfree(p->versions.routerBuild);
p->versions.routerBuild = NULL; p->versions.routerBuild = NULL;
CsrPmemFree(p->versions.smeBuild); kfree(p->versions.smeBuild);
p->versions.smeBuild = NULL; p->versions.smeBuild = NULL;
break; break;
} }
case CSR_WIFI_SME_CLOAKED_SSIDS_GET_CFM: case CSR_WIFI_SME_CLOAKED_SSIDS_GET_CFM:
{ {
CsrWifiSmeCloakedSsidsGetCfm *p = (CsrWifiSmeCloakedSsidsGetCfm *)message; CsrWifiSmeCloakedSsidsGetCfm *p = (CsrWifiSmeCloakedSsidsGetCfm *)message;
CsrPmemFree(p->cloakedSsids.cloakedSsids); kfree(p->cloakedSsids.cloakedSsids);
p->cloakedSsids.cloakedSsids = NULL; p->cloakedSsids.cloakedSsids = NULL;
break; break;
} }
case CSR_WIFI_SME_ERROR_IND: case CSR_WIFI_SME_ERROR_IND:
{ {
CsrWifiSmeErrorInd *p = (CsrWifiSmeErrorInd *)message; CsrWifiSmeErrorInd *p = (CsrWifiSmeErrorInd *)message;
CsrPmemFree(p->errorMessage); kfree(p->errorMessage);
p->errorMessage = NULL; p->errorMessage = NULL;
break; break;
} }
case CSR_WIFI_SME_INFO_IND: case CSR_WIFI_SME_INFO_IND:
{ {
CsrWifiSmeInfoInd *p = (CsrWifiSmeInfoInd *)message; CsrWifiSmeInfoInd *p = (CsrWifiSmeInfoInd *)message;
CsrPmemFree(p->infoMessage); kfree(p->infoMessage);
p->infoMessage = NULL; p->infoMessage = NULL;
break; break;
} }
case CSR_WIFI_SME_CORE_DUMP_IND: case CSR_WIFI_SME_CORE_DUMP_IND:
{ {
CsrWifiSmeCoreDumpInd *p = (CsrWifiSmeCoreDumpInd *)message; CsrWifiSmeCoreDumpInd *p = (CsrWifiSmeCoreDumpInd *)message;
CsrPmemFree(p->data); kfree(p->data);
p->data = NULL; p->data = NULL;
break; break;
} }
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
/* Note: this is an auto-generated file. */ /* Note: this is an auto-generated file. */
#include <linux/string.h> #include <linux/string.h>
#include <linux/slab.h>
#include "csr_pmem.h" #include "csr_pmem.h"
#include "csr_msgconv.h" #include "csr_msgconv.h"
#include "csr_unicode.h" #include "csr_unicode.h"
...@@ -20,7 +21,7 @@ ...@@ -20,7 +21,7 @@
void CsrWifiSmePfree(void *ptr) void CsrWifiSmePfree(void *ptr)
{ {
CsrPmemFree(ptr); kfree(ptr);
} }
...@@ -135,8 +136,8 @@ void* CsrWifiSmeBlacklistReqDes(u8 *buffer, size_t length) ...@@ -135,8 +136,8 @@ void* CsrWifiSmeBlacklistReqDes(u8 *buffer, size_t length)
void CsrWifiSmeBlacklistReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeBlacklistReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeBlacklistReq *primitive = (CsrWifiSmeBlacklistReq *) voidPrimitivePointer; CsrWifiSmeBlacklistReq *primitive = (CsrWifiSmeBlacklistReq *) voidPrimitivePointer;
CsrPmemFree(primitive->setAddresses); kfree(primitive->setAddresses);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -191,8 +192,8 @@ void* CsrWifiSmeCalibrationDataSetReqDes(u8 *buffer, size_t length) ...@@ -191,8 +192,8 @@ void* CsrWifiSmeCalibrationDataSetReqDes(u8 *buffer, size_t length)
void CsrWifiSmeCalibrationDataSetReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeCalibrationDataSetReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeCalibrationDataSetReq *primitive = (CsrWifiSmeCalibrationDataSetReq *) voidPrimitivePointer; CsrWifiSmeCalibrationDataSetReq *primitive = (CsrWifiSmeCalibrationDataSetReq *) voidPrimitivePointer;
CsrPmemFree(primitive->calibrationData); kfree(primitive->calibrationData);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -400,8 +401,8 @@ void* CsrWifiSmeConnectReqDes(u8 *buffer, size_t length) ...@@ -400,8 +401,8 @@ void* CsrWifiSmeConnectReqDes(u8 *buffer, size_t length)
void CsrWifiSmeConnectReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeConnectReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeConnectReq *primitive = (CsrWifiSmeConnectReq *) voidPrimitivePointer; CsrWifiSmeConnectReq *primitive = (CsrWifiSmeConnectReq *) voidPrimitivePointer;
CsrPmemFree(primitive->connectionConfig.mlmeAssociateReqInformationElements); kfree(primitive->connectionConfig.mlmeAssociateReqInformationElements);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -618,8 +619,8 @@ void* CsrWifiSmeMibGetNextReqDes(u8 *buffer, size_t length) ...@@ -618,8 +619,8 @@ void* CsrWifiSmeMibGetNextReqDes(u8 *buffer, size_t length)
void CsrWifiSmeMibGetNextReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeMibGetNextReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeMibGetNextReq *primitive = (CsrWifiSmeMibGetNextReq *) voidPrimitivePointer; CsrWifiSmeMibGetNextReq *primitive = (CsrWifiSmeMibGetNextReq *) voidPrimitivePointer;
CsrPmemFree(primitive->mibAttribute); kfree(primitive->mibAttribute);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -674,8 +675,8 @@ void* CsrWifiSmeMibGetReqDes(u8 *buffer, size_t length) ...@@ -674,8 +675,8 @@ void* CsrWifiSmeMibGetReqDes(u8 *buffer, size_t length)
void CsrWifiSmeMibGetReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeMibGetReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeMibGetReq *primitive = (CsrWifiSmeMibGetReq *) voidPrimitivePointer; CsrWifiSmeMibGetReq *primitive = (CsrWifiSmeMibGetReq *) voidPrimitivePointer;
CsrPmemFree(primitive->mibAttribute); kfree(primitive->mibAttribute);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -730,8 +731,8 @@ void* CsrWifiSmeMibSetReqDes(u8 *buffer, size_t length) ...@@ -730,8 +731,8 @@ void* CsrWifiSmeMibSetReqDes(u8 *buffer, size_t length)
void CsrWifiSmeMibSetReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeMibSetReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeMibSetReq *primitive = (CsrWifiSmeMibSetReq *) voidPrimitivePointer; CsrWifiSmeMibSetReq *primitive = (CsrWifiSmeMibSetReq *) voidPrimitivePointer;
CsrPmemFree(primitive->mibAttribute); kfree(primitive->mibAttribute);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -804,8 +805,8 @@ void* CsrWifiSmeMulticastAddressReqDes(u8 *buffer, size_t length) ...@@ -804,8 +805,8 @@ void* CsrWifiSmeMulticastAddressReqDes(u8 *buffer, size_t length)
void CsrWifiSmeMulticastAddressReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeMulticastAddressReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeMulticastAddressReq *primitive = (CsrWifiSmeMulticastAddressReq *) voidPrimitivePointer; CsrWifiSmeMulticastAddressReq *primitive = (CsrWifiSmeMulticastAddressReq *) voidPrimitivePointer;
CsrPmemFree(primitive->setAddresses); kfree(primitive->setAddresses);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -869,8 +870,8 @@ void* CsrWifiSmePacketFilterSetReqDes(u8 *buffer, size_t length) ...@@ -869,8 +870,8 @@ void* CsrWifiSmePacketFilterSetReqDes(u8 *buffer, size_t length)
void CsrWifiSmePacketFilterSetReqSerFree(void *voidPrimitivePointer) void CsrWifiSmePacketFilterSetReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmePacketFilterSetReq *primitive = (CsrWifiSmePacketFilterSetReq *) voidPrimitivePointer; CsrWifiSmePacketFilterSetReq *primitive = (CsrWifiSmePacketFilterSetReq *) voidPrimitivePointer;
CsrPmemFree(primitive->filter); kfree(primitive->filter);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -946,8 +947,8 @@ void* CsrWifiSmePmkidReqDes(u8 *buffer, size_t length) ...@@ -946,8 +947,8 @@ void* CsrWifiSmePmkidReqDes(u8 *buffer, size_t length)
void CsrWifiSmePmkidReqSerFree(void *voidPrimitivePointer) void CsrWifiSmePmkidReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmePmkidReq *primitive = (CsrWifiSmePmkidReq *) voidPrimitivePointer; CsrWifiSmePmkidReq *primitive = (CsrWifiSmePmkidReq *) voidPrimitivePointer;
CsrPmemFree(primitive->setPmkids); kfree(primitive->setPmkids);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1224,8 +1225,8 @@ void* CsrWifiSmeScanConfigSetReqDes(u8 *buffer, size_t length) ...@@ -1224,8 +1225,8 @@ void* CsrWifiSmeScanConfigSetReqDes(u8 *buffer, size_t length)
void CsrWifiSmeScanConfigSetReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeScanConfigSetReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeScanConfigSetReq *primitive = (CsrWifiSmeScanConfigSetReq *) voidPrimitivePointer; CsrWifiSmeScanConfigSetReq *primitive = (CsrWifiSmeScanConfigSetReq *) voidPrimitivePointer;
CsrPmemFree(primitive->scanConfig.passiveChannelList); kfree(primitive->scanConfig.passiveChannelList);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1341,10 +1342,10 @@ void* CsrWifiSmeScanFullReqDes(u8 *buffer, size_t length) ...@@ -1341,10 +1342,10 @@ void* CsrWifiSmeScanFullReqDes(u8 *buffer, size_t length)
void CsrWifiSmeScanFullReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeScanFullReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeScanFullReq *primitive = (CsrWifiSmeScanFullReq *) voidPrimitivePointer; CsrWifiSmeScanFullReq *primitive = (CsrWifiSmeScanFullReq *) voidPrimitivePointer;
CsrPmemFree(primitive->ssid); kfree(primitive->ssid);
CsrPmemFree(primitive->channelList); kfree(primitive->channelList);
CsrPmemFree(primitive->probeIe); kfree(primitive->probeIe);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1482,9 +1483,9 @@ void* CsrWifiSmeTspecReqDes(u8 *buffer, size_t length) ...@@ -1482,9 +1483,9 @@ void* CsrWifiSmeTspecReqDes(u8 *buffer, size_t length)
void CsrWifiSmeTspecReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeTspecReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeTspecReq *primitive = (CsrWifiSmeTspecReq *) voidPrimitivePointer; CsrWifiSmeTspecReq *primitive = (CsrWifiSmeTspecReq *) voidPrimitivePointer;
CsrPmemFree(primitive->tspec); kfree(primitive->tspec);
CsrPmemFree(primitive->tclas); kfree(primitive->tclas);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1572,11 +1573,11 @@ void CsrWifiSmeWifiFlightmodeReqSerFree(void *voidPrimitivePointer) ...@@ -1572,11 +1573,11 @@ void CsrWifiSmeWifiFlightmodeReqSerFree(void *voidPrimitivePointer)
u16 i1; u16 i1;
for (i1 = 0; i1 < primitive->mibFilesCount; i1++) for (i1 = 0; i1 < primitive->mibFilesCount; i1++)
{ {
CsrPmemFree(primitive->mibFiles[i1].data); kfree(primitive->mibFiles[i1].data);
} }
} }
CsrPmemFree(primitive->mibFiles); kfree(primitive->mibFiles);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1664,11 +1665,11 @@ void CsrWifiSmeWifiOnReqSerFree(void *voidPrimitivePointer) ...@@ -1664,11 +1665,11 @@ void CsrWifiSmeWifiOnReqSerFree(void *voidPrimitivePointer)
u16 i1; u16 i1;
for (i1 = 0; i1 < primitive->mibFilesCount; i1++) for (i1 = 0; i1 < primitive->mibFilesCount; i1++)
{ {
CsrPmemFree(primitive->mibFiles[i1].data); kfree(primitive->mibFiles[i1].data);
} }
} }
CsrPmemFree(primitive->mibFiles); kfree(primitive->mibFiles);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1738,8 +1739,8 @@ void* CsrWifiSmeCloakedSsidsSetReqDes(u8 *buffer, size_t length) ...@@ -1738,8 +1739,8 @@ void* CsrWifiSmeCloakedSsidsSetReqDes(u8 *buffer, size_t length)
void CsrWifiSmeCloakedSsidsSetReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeCloakedSsidsSetReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeCloakedSsidsSetReq *primitive = (CsrWifiSmeCloakedSsidsSetReq *) voidPrimitivePointer; CsrWifiSmeCloakedSsidsSetReq *primitive = (CsrWifiSmeCloakedSsidsSetReq *) voidPrimitivePointer;
CsrPmemFree(primitive->cloakedSsids.cloakedSsids); kfree(primitive->cloakedSsids.cloakedSsids);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1893,8 +1894,8 @@ void* CsrWifiSmeWpsConfigurationReqDes(u8 *buffer, size_t length) ...@@ -1893,8 +1894,8 @@ void* CsrWifiSmeWpsConfigurationReqDes(u8 *buffer, size_t length)
void CsrWifiSmeWpsConfigurationReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeWpsConfigurationReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeWpsConfigurationReq *primitive = (CsrWifiSmeWpsConfigurationReq *) voidPrimitivePointer; CsrWifiSmeWpsConfigurationReq *primitive = (CsrWifiSmeWpsConfigurationReq *) voidPrimitivePointer;
CsrPmemFree(primitive->wpsConfig.secondaryDeviceType); kfree(primitive->wpsConfig.secondaryDeviceType);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1949,8 +1950,8 @@ void* CsrWifiSmeSetReqDes(u8 *buffer, size_t length) ...@@ -1949,8 +1950,8 @@ void* CsrWifiSmeSetReqDes(u8 *buffer, size_t length)
void CsrWifiSmeSetReqSerFree(void *voidPrimitivePointer) void CsrWifiSmeSetReqSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeSetReq *primitive = (CsrWifiSmeSetReq *) voidPrimitivePointer; CsrWifiSmeSetReq *primitive = (CsrWifiSmeSetReq *) voidPrimitivePointer;
CsrPmemFree(primitive->data); kfree(primitive->data);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -2201,13 +2202,13 @@ void* CsrWifiSmeAssociationCompleteIndDes(u8 *buffer, size_t length) ...@@ -2201,13 +2202,13 @@ void* CsrWifiSmeAssociationCompleteIndDes(u8 *buffer, size_t length)
void CsrWifiSmeAssociationCompleteIndSerFree(void *voidPrimitivePointer) void CsrWifiSmeAssociationCompleteIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeAssociationCompleteInd *primitive = (CsrWifiSmeAssociationCompleteInd *) voidPrimitivePointer; CsrWifiSmeAssociationCompleteInd *primitive = (CsrWifiSmeAssociationCompleteInd *) voidPrimitivePointer;
CsrPmemFree(primitive->connectionInfo.beaconFrame); kfree(primitive->connectionInfo.beaconFrame);
CsrPmemFree(primitive->connectionInfo.associationReqFrame); kfree(primitive->connectionInfo.associationReqFrame);
CsrPmemFree(primitive->connectionInfo.associationRspFrame); kfree(primitive->connectionInfo.associationRspFrame);
CsrPmemFree(primitive->connectionInfo.assocScanInfoElements); kfree(primitive->connectionInfo.assocScanInfoElements);
CsrPmemFree(primitive->connectionInfo.assocReqInfoElements); kfree(primitive->connectionInfo.assocReqInfoElements);
CsrPmemFree(primitive->connectionInfo.assocRspInfoElements); kfree(primitive->connectionInfo.assocRspInfoElements);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -2325,8 +2326,8 @@ void* CsrWifiSmeBlacklistCfmDes(u8 *buffer, size_t length) ...@@ -2325,8 +2326,8 @@ void* CsrWifiSmeBlacklistCfmDes(u8 *buffer, size_t length)
void CsrWifiSmeBlacklistCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmeBlacklistCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeBlacklistCfm *primitive = (CsrWifiSmeBlacklistCfm *) voidPrimitivePointer; CsrWifiSmeBlacklistCfm *primitive = (CsrWifiSmeBlacklistCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->getAddresses); kfree(primitive->getAddresses);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -2384,8 +2385,8 @@ void* CsrWifiSmeCalibrationDataGetCfmDes(u8 *buffer, size_t length) ...@@ -2384,8 +2385,8 @@ void* CsrWifiSmeCalibrationDataGetCfmDes(u8 *buffer, size_t length)
void CsrWifiSmeCalibrationDataGetCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmeCalibrationDataGetCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeCalibrationDataGetCfm *primitive = (CsrWifiSmeCalibrationDataGetCfm *) voidPrimitivePointer; CsrWifiSmeCalibrationDataGetCfm *primitive = (CsrWifiSmeCalibrationDataGetCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->calibrationData); kfree(primitive->calibrationData);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -2737,8 +2738,8 @@ void* CsrWifiSmeConnectionConfigGetCfmDes(u8 *buffer, size_t length) ...@@ -2737,8 +2738,8 @@ void* CsrWifiSmeConnectionConfigGetCfmDes(u8 *buffer, size_t length)
void CsrWifiSmeConnectionConfigGetCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmeConnectionConfigGetCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeConnectionConfigGetCfm *primitive = (CsrWifiSmeConnectionConfigGetCfm *) voidPrimitivePointer; CsrWifiSmeConnectionConfigGetCfm *primitive = (CsrWifiSmeConnectionConfigGetCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->connectionConfig.mlmeAssociateReqInformationElements); kfree(primitive->connectionConfig.mlmeAssociateReqInformationElements);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -2941,13 +2942,13 @@ void* CsrWifiSmeConnectionInfoGetCfmDes(u8 *buffer, size_t length) ...@@ -2941,13 +2942,13 @@ void* CsrWifiSmeConnectionInfoGetCfmDes(u8 *buffer, size_t length)
void CsrWifiSmeConnectionInfoGetCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmeConnectionInfoGetCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeConnectionInfoGetCfm *primitive = (CsrWifiSmeConnectionInfoGetCfm *) voidPrimitivePointer; CsrWifiSmeConnectionInfoGetCfm *primitive = (CsrWifiSmeConnectionInfoGetCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->connectionInfo.beaconFrame); kfree(primitive->connectionInfo.beaconFrame);
CsrPmemFree(primitive->connectionInfo.associationReqFrame); kfree(primitive->connectionInfo.associationReqFrame);
CsrPmemFree(primitive->connectionInfo.associationRspFrame); kfree(primitive->connectionInfo.associationRspFrame);
CsrPmemFree(primitive->connectionInfo.assocScanInfoElements); kfree(primitive->connectionInfo.assocScanInfoElements);
CsrPmemFree(primitive->connectionInfo.assocReqInfoElements); kfree(primitive->connectionInfo.assocReqInfoElements);
CsrPmemFree(primitive->connectionInfo.assocRspInfoElements); kfree(primitive->connectionInfo.assocRspInfoElements);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -3543,13 +3544,13 @@ void* CsrWifiSmeMediaStatusIndDes(u8 *buffer, size_t length) ...@@ -3543,13 +3544,13 @@ void* CsrWifiSmeMediaStatusIndDes(u8 *buffer, size_t length)
void CsrWifiSmeMediaStatusIndSerFree(void *voidPrimitivePointer) void CsrWifiSmeMediaStatusIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeMediaStatusInd *primitive = (CsrWifiSmeMediaStatusInd *) voidPrimitivePointer; CsrWifiSmeMediaStatusInd *primitive = (CsrWifiSmeMediaStatusInd *) voidPrimitivePointer;
CsrPmemFree(primitive->connectionInfo.beaconFrame); kfree(primitive->connectionInfo.beaconFrame);
CsrPmemFree(primitive->connectionInfo.associationReqFrame); kfree(primitive->connectionInfo.associationReqFrame);
CsrPmemFree(primitive->connectionInfo.associationRspFrame); kfree(primitive->connectionInfo.associationRspFrame);
CsrPmemFree(primitive->connectionInfo.assocScanInfoElements); kfree(primitive->connectionInfo.assocScanInfoElements);
CsrPmemFree(primitive->connectionInfo.assocReqInfoElements); kfree(primitive->connectionInfo.assocReqInfoElements);
CsrPmemFree(primitive->connectionInfo.assocRspInfoElements); kfree(primitive->connectionInfo.assocRspInfoElements);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -3655,8 +3656,8 @@ void* CsrWifiSmeMibGetCfmDes(u8 *buffer, size_t length) ...@@ -3655,8 +3656,8 @@ void* CsrWifiSmeMibGetCfmDes(u8 *buffer, size_t length)
void CsrWifiSmeMibGetCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmeMibGetCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeMibGetCfm *primitive = (CsrWifiSmeMibGetCfm *) voidPrimitivePointer; CsrWifiSmeMibGetCfm *primitive = (CsrWifiSmeMibGetCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->mibAttribute); kfree(primitive->mibAttribute);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -3714,8 +3715,8 @@ void* CsrWifiSmeMibGetNextCfmDes(u8 *buffer, size_t length) ...@@ -3714,8 +3715,8 @@ void* CsrWifiSmeMibGetNextCfmDes(u8 *buffer, size_t length)
void CsrWifiSmeMibGetNextCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmeMibGetNextCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeMibGetNextCfm *primitive = (CsrWifiSmeMibGetNextCfm *) voidPrimitivePointer; CsrWifiSmeMibGetNextCfm *primitive = (CsrWifiSmeMibGetNextCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->mibAttribute); kfree(primitive->mibAttribute);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -3836,8 +3837,8 @@ void* CsrWifiSmeMulticastAddressCfmDes(u8 *buffer, size_t length) ...@@ -3836,8 +3837,8 @@ void* CsrWifiSmeMulticastAddressCfmDes(u8 *buffer, size_t length)
void CsrWifiSmeMulticastAddressCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmeMulticastAddressCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeMulticastAddressCfm *primitive = (CsrWifiSmeMulticastAddressCfm *) voidPrimitivePointer; CsrWifiSmeMulticastAddressCfm *primitive = (CsrWifiSmeMulticastAddressCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->getAddresses); kfree(primitive->getAddresses);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -3982,8 +3983,8 @@ void* CsrWifiSmePmkidCandidateListIndDes(u8 *buffer, size_t length) ...@@ -3982,8 +3983,8 @@ void* CsrWifiSmePmkidCandidateListIndDes(u8 *buffer, size_t length)
void CsrWifiSmePmkidCandidateListIndSerFree(void *voidPrimitivePointer) void CsrWifiSmePmkidCandidateListIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmePmkidCandidateListInd *primitive = (CsrWifiSmePmkidCandidateListInd *) voidPrimitivePointer; CsrWifiSmePmkidCandidateListInd *primitive = (CsrWifiSmePmkidCandidateListInd *) voidPrimitivePointer;
CsrPmemFree(primitive->pmkidCandidates); kfree(primitive->pmkidCandidates);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -4062,8 +4063,8 @@ void* CsrWifiSmePmkidCfmDes(u8 *buffer, size_t length) ...@@ -4062,8 +4063,8 @@ void* CsrWifiSmePmkidCfmDes(u8 *buffer, size_t length)
void CsrWifiSmePmkidCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmePmkidCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmePmkidCfm *primitive = (CsrWifiSmePmkidCfm *) voidPrimitivePointer; CsrWifiSmePmkidCfm *primitive = (CsrWifiSmePmkidCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->getPmkids); kfree(primitive->getPmkids);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -4505,8 +4506,8 @@ void* CsrWifiSmeScanConfigGetCfmDes(u8 *buffer, size_t length) ...@@ -4505,8 +4506,8 @@ void* CsrWifiSmeScanConfigGetCfmDes(u8 *buffer, size_t length)
void CsrWifiSmeScanConfigGetCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmeScanConfigGetCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeScanConfigGetCfm *primitive = (CsrWifiSmeScanConfigGetCfm *) voidPrimitivePointer; CsrWifiSmeScanConfigGetCfm *primitive = (CsrWifiSmeScanConfigGetCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->scanConfig.passiveChannelList); kfree(primitive->scanConfig.passiveChannelList);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -4780,7 +4781,7 @@ void* CsrWifiSmeScanResultIndDes(u8 *buffer, size_t length) ...@@ -4780,7 +4781,7 @@ void* CsrWifiSmeScanResultIndDes(u8 *buffer, size_t length)
void CsrWifiSmeScanResultIndSerFree(void *voidPrimitivePointer) void CsrWifiSmeScanResultIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeScanResultInd *primitive = (CsrWifiSmeScanResultInd *) voidPrimitivePointer; CsrWifiSmeScanResultInd *primitive = (CsrWifiSmeScanResultInd *) voidPrimitivePointer;
CsrPmemFree(primitive->result.informationElements); kfree(primitive->result.informationElements);
switch (primitive->result.p2pDeviceRole) switch (primitive->result.p2pDeviceRole)
{ {
case CSR_WIFI_SME_P2P_ROLE_GO: case CSR_WIFI_SME_P2P_ROLE_GO:
...@@ -4788,18 +4789,18 @@ void CsrWifiSmeScanResultIndSerFree(void *voidPrimitivePointer) ...@@ -4788,18 +4789,18 @@ void CsrWifiSmeScanResultIndSerFree(void *voidPrimitivePointer)
u16 i4; u16 i4;
for (i4 = 0; i4 < primitive->result.deviceInfo.groupInfo.p2pClientInfoCount; i4++) for (i4 = 0; i4 < primitive->result.deviceInfo.groupInfo.p2pClientInfoCount; i4++)
{ {
CsrPmemFree(primitive->result.deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType); kfree(primitive->result.deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType);
} }
} }
CsrPmemFree(primitive->result.deviceInfo.groupInfo.p2PClientInfo); kfree(primitive->result.deviceInfo.groupInfo.p2PClientInfo);
break; break;
case CSR_WIFI_SME_P2P_ROLE_STANDALONE: case CSR_WIFI_SME_P2P_ROLE_STANDALONE:
CsrPmemFree(primitive->result.deviceInfo.standalonedevInfo.secDeviceType); kfree(primitive->result.deviceInfo.standalonedevInfo.secDeviceType);
break; break;
default: default:
break; break;
} }
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -5106,7 +5107,7 @@ void CsrWifiSmeScanResultsGetCfmSerFree(void *voidPrimitivePointer) ...@@ -5106,7 +5107,7 @@ void CsrWifiSmeScanResultsGetCfmSerFree(void *voidPrimitivePointer)
u16 i1; u16 i1;
for (i1 = 0; i1 < primitive->scanResultsCount; i1++) for (i1 = 0; i1 < primitive->scanResultsCount; i1++)
{ {
CsrPmemFree(primitive->scanResults[i1].informationElements); kfree(primitive->scanResults[i1].informationElements);
switch (primitive->scanResults[i1].p2pDeviceRole) switch (primitive->scanResults[i1].p2pDeviceRole)
{ {
case CSR_WIFI_SME_P2P_ROLE_GO: case CSR_WIFI_SME_P2P_ROLE_GO:
...@@ -5114,21 +5115,21 @@ void CsrWifiSmeScanResultsGetCfmSerFree(void *voidPrimitivePointer) ...@@ -5114,21 +5115,21 @@ void CsrWifiSmeScanResultsGetCfmSerFree(void *voidPrimitivePointer)
u16 i4; u16 i4;
for (i4 = 0; i4 < primitive->scanResults[i1].deviceInfo.groupInfo.p2pClientInfoCount; i4++) for (i4 = 0; i4 < primitive->scanResults[i1].deviceInfo.groupInfo.p2pClientInfoCount; i4++)
{ {
CsrPmemFree(primitive->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType); kfree(primitive->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo[i4].clientDeviceInfo.secDeviceType);
} }
} }
CsrPmemFree(primitive->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo); kfree(primitive->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo);
break; break;
case CSR_WIFI_SME_P2P_ROLE_STANDALONE: case CSR_WIFI_SME_P2P_ROLE_STANDALONE:
CsrPmemFree(primitive->scanResults[i1].deviceInfo.standalonedevInfo.secDeviceType); kfree(primitive->scanResults[i1].deviceInfo.standalonedevInfo.secDeviceType);
break; break;
default: default:
break; break;
} }
} }
} }
CsrPmemFree(primitive->scanResults); kfree(primitive->scanResults);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -5336,8 +5337,8 @@ void* CsrWifiSmeTspecIndDes(u8 *buffer, size_t length) ...@@ -5336,8 +5337,8 @@ void* CsrWifiSmeTspecIndDes(u8 *buffer, size_t length)
void CsrWifiSmeTspecIndSerFree(void *voidPrimitivePointer) void CsrWifiSmeTspecIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeTspecInd *primitive = (CsrWifiSmeTspecInd *) voidPrimitivePointer; CsrWifiSmeTspecInd *primitive = (CsrWifiSmeTspecInd *) voidPrimitivePointer;
CsrPmemFree(primitive->tspec); kfree(primitive->tspec);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -5404,8 +5405,8 @@ void* CsrWifiSmeTspecCfmDes(u8 *buffer, size_t length) ...@@ -5404,8 +5405,8 @@ void* CsrWifiSmeTspecCfmDes(u8 *buffer, size_t length)
void CsrWifiSmeTspecCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmeTspecCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeTspecCfm *primitive = (CsrWifiSmeTspecCfm *) voidPrimitivePointer; CsrWifiSmeTspecCfm *primitive = (CsrWifiSmeTspecCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->tspec); kfree(primitive->tspec);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -5473,9 +5474,9 @@ void* CsrWifiSmeVersionsGetCfmDes(u8 *buffer, size_t length) ...@@ -5473,9 +5474,9 @@ void* CsrWifiSmeVersionsGetCfmDes(u8 *buffer, size_t length)
void CsrWifiSmeVersionsGetCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmeVersionsGetCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeVersionsGetCfm *primitive = (CsrWifiSmeVersionsGetCfm *) voidPrimitivePointer; CsrWifiSmeVersionsGetCfm *primitive = (CsrWifiSmeVersionsGetCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->versions.routerBuild); kfree(primitive->versions.routerBuild);
CsrPmemFree(primitive->versions.smeBuild); kfree(primitive->versions.smeBuild);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -5548,8 +5549,8 @@ void* CsrWifiSmeCloakedSsidsGetCfmDes(u8 *buffer, size_t length) ...@@ -5548,8 +5549,8 @@ void* CsrWifiSmeCloakedSsidsGetCfmDes(u8 *buffer, size_t length)
void CsrWifiSmeCloakedSsidsGetCfmSerFree(void *voidPrimitivePointer) void CsrWifiSmeCloakedSsidsGetCfmSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeCloakedSsidsGetCfm *primitive = (CsrWifiSmeCloakedSsidsGetCfm *) voidPrimitivePointer; CsrWifiSmeCloakedSsidsGetCfm *primitive = (CsrWifiSmeCloakedSsidsGetCfm *) voidPrimitivePointer;
CsrPmemFree(primitive->cloakedSsids.cloakedSsids); kfree(primitive->cloakedSsids.cloakedSsids);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -5707,8 +5708,8 @@ void* CsrWifiSmeErrorIndDes(u8 *buffer, size_t length) ...@@ -5707,8 +5708,8 @@ void* CsrWifiSmeErrorIndDes(u8 *buffer, size_t length)
void CsrWifiSmeErrorIndSerFree(void *voidPrimitivePointer) void CsrWifiSmeErrorIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeErrorInd *primitive = (CsrWifiSmeErrorInd *) voidPrimitivePointer; CsrWifiSmeErrorInd *primitive = (CsrWifiSmeErrorInd *) voidPrimitivePointer;
CsrPmemFree(primitive->errorMessage); kfree(primitive->errorMessage);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -5749,8 +5750,8 @@ void* CsrWifiSmeInfoIndDes(u8 *buffer, size_t length) ...@@ -5749,8 +5750,8 @@ void* CsrWifiSmeInfoIndDes(u8 *buffer, size_t length)
void CsrWifiSmeInfoIndSerFree(void *voidPrimitivePointer) void CsrWifiSmeInfoIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeInfoInd *primitive = (CsrWifiSmeInfoInd *) voidPrimitivePointer; CsrWifiSmeInfoInd *primitive = (CsrWifiSmeInfoInd *) voidPrimitivePointer;
CsrPmemFree(primitive->infoMessage); kfree(primitive->infoMessage);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -5805,8 +5806,8 @@ void* CsrWifiSmeCoreDumpIndDes(u8 *buffer, size_t length) ...@@ -5805,8 +5806,8 @@ void* CsrWifiSmeCoreDumpIndDes(u8 *buffer, size_t length)
void CsrWifiSmeCoreDumpIndSerFree(void *voidPrimitivePointer) void CsrWifiSmeCoreDumpIndSerFree(void *voidPrimitivePointer)
{ {
CsrWifiSmeCoreDumpInd *primitive = (CsrWifiSmeCoreDumpInd *) voidPrimitivePointer; CsrWifiSmeCoreDumpInd *primitive = (CsrWifiSmeCoreDumpInd *) voidPrimitivePointer;
CsrPmemFree(primitive->data); kfree(primitive->data);
CsrPmemFree(primitive); kfree(primitive);
} }
...@@ -1476,7 +1476,7 @@ unifi_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -1476,7 +1476,7 @@ unifi_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
if (pcli->snap_filter.count) { if (pcli->snap_filter.count) {
pcli->snap_filter.count = 0; pcli->snap_filter.count = 0;
CsrPmemFree(pcli->snap_filter.protocols); kfree(pcli->snap_filter.protocols);
} }
if (snap_filter.count == 0) { if (snap_filter.count == 0) {
...@@ -1492,7 +1492,7 @@ unifi_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -1492,7 +1492,7 @@ unifi_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
(void*)snap_filter.protocols, (void*)snap_filter.protocols,
snap_filter.count * sizeof(u16))) snap_filter.count * sizeof(u16)))
{ {
CsrPmemFree(pcli->snap_filter.protocols); kfree(pcli->snap_filter.protocols);
r = -EFAULT; r = -EFAULT;
goto out; goto out;
} }
...@@ -1938,7 +1938,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length) ...@@ -1938,7 +1938,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length)
if (logptr == NULL) { if (logptr == NULL) {
unifi_error(priv, "Failed to allocate %d bytes for an SME message\n", unifi_error(priv, "Failed to allocate %d bytes for an SME message\n",
sizeof(udi_log_t) + length); sizeof(udi_log_t) + length);
CsrPmemFree(buffer); kfree(buffer);
return -ENOMEM; return -ENOMEM;
} }
...@@ -1956,7 +1956,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length) ...@@ -1956,7 +1956,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length)
down(&udi_mutex); down(&udi_mutex);
if (priv->sme_cli == NULL) { if (priv->sme_cli == NULL) {
kfree(logptr); kfree(logptr);
CsrPmemFree(buffer); kfree(buffer);
up(&udi_mutex); up(&udi_mutex);
unifi_info(priv, "Message for the SME dropped, SME has gone away\n"); unifi_info(priv, "Message for the SME dropped, SME has gone away\n");
return 0; return 0;
...@@ -1971,7 +1971,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length) ...@@ -1971,7 +1971,7 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length)
up(&udi_mutex); up(&udi_mutex);
/* It is our responsibility to free the buffer allocated in build_packed_*() */ /* It is our responsibility to free the buffer allocated in build_packed_*() */
CsrPmemFree(buffer); kfree(buffer);
func_exit(); func_exit();
......
...@@ -499,7 +499,7 @@ int unifi_putest_dl_fw_buff(unifi_priv_t *priv, unsigned char *arg) ...@@ -499,7 +499,7 @@ int unifi_putest_dl_fw_buff(unifi_priv_t *priv, unsigned char *arg)
fw_user_ptr = ((unsigned char*)arg) + sizeof(unifi_putest_command_t) + sizeof(unsigned int); fw_user_ptr = ((unsigned char*)arg) + sizeof(unifi_putest_command_t) + sizeof(unsigned int);
if (copy_from_user(fw_buf, (void*)fw_user_ptr, fw_length)) { if (copy_from_user(fw_buf, (void*)fw_user_ptr, fw_length)) {
unifi_error(priv, "unifi_putest_dl_fw_buff: Failed to get the buffer\n"); unifi_error(priv, "unifi_putest_dl_fw_buff: Failed to get the buffer\n");
CsrPmemFree(fw_buf); kfree(fw_buf);
return -EFAULT; return -EFAULT;
} }
...@@ -537,7 +537,7 @@ int unifi_putest_dl_fw_buff(unifi_priv_t *priv, unsigned char *arg) ...@@ -537,7 +537,7 @@ int unifi_putest_dl_fw_buff(unifi_priv_t *priv, unsigned char *arg)
free_fw: free_fw:
/* Finished with the putest f/w, so restore the station f/w */ /* Finished with the putest f/w, so restore the station f/w */
priv->fw_sta = temp_fw_sta; priv->fw_sta = temp_fw_sta;
CsrPmemFree(fw_buf); kfree(fw_buf);
return CsrHipResultToStatus(csrResult); return CsrHipResultToStatus(csrResult);
} }
......
...@@ -415,7 +415,7 @@ int sme_mgt_scan_results_get_async(unifi_priv_t *priv, ...@@ -415,7 +415,7 @@ int sme_mgt_scan_results_get_async(unifi_priv_t *priv,
scan_result, i+1); scan_result, i+1);
if (r < 0) { if (r < 0) {
CsrPmemFree(scan_result_list); kfree(scan_result_list);
priv->sme_reply.reply_scan_results_count = 0; priv->sme_reply.reply_scan_results_count = 0;
priv->sme_reply.reply_scan_results = NULL; priv->sme_reply.reply_scan_results = NULL;
return r; return r;
...@@ -429,7 +429,7 @@ int sme_mgt_scan_results_get_async(unifi_priv_t *priv, ...@@ -429,7 +429,7 @@ int sme_mgt_scan_results_get_async(unifi_priv_t *priv,
* and invalidate the reply_scan_results to avoid re-using * and invalidate the reply_scan_results to avoid re-using
* the freed pointers. * the freed pointers.
*/ */
CsrPmemFree(scan_result_list); kfree(scan_result_list);
priv->sme_reply.reply_scan_results_count = 0; priv->sme_reply.reply_scan_results_count = 0;
priv->sme_reply.reply_scan_results = NULL; priv->sme_reply.reply_scan_results = NULL;
......
...@@ -128,7 +128,7 @@ uf_sme_deinit(unifi_priv_t *priv) ...@@ -128,7 +128,7 @@ uf_sme_deinit(unifi_priv_t *priv)
/* Free any TCLASs previously allocated */ /* Free any TCLASs previously allocated */
if (priv->packet_filters.tclas_ies_length) { if (priv->packet_filters.tclas_ies_length) {
priv->packet_filters.tclas_ies_length = 0; priv->packet_filters.tclas_ies_length = 0;
CsrPmemFree(priv->filter_tclas_ies); kfree(priv->filter_tclas_ies);
priv->filter_tclas_ies = NULL; priv->filter_tclas_ies = NULL;
} }
......
...@@ -117,9 +117,9 @@ ul_register_client(unifi_priv_t *priv, unsigned int configuration, ...@@ -117,9 +117,9 @@ ul_register_client(unifi_priv_t *priv, unsigned int configuration,
/* If allocation fails, free allocated memory. */ /* If allocation fails, free allocated memory. */
if (ul_clients[id].reply_bulkdata[ref] == NULL) { if (ul_clients[id].reply_bulkdata[ref] == NULL) {
for (; ref > 0; ref --) { for (; ref > 0; ref --) {
CsrPmemFree(ul_clients[id].reply_bulkdata[ref - 1]); kfree(ul_clients[id].reply_bulkdata[ref - 1]);
} }
CsrPmemFree(ul_clients[id].reply_signal); kfree(ul_clients[id].reply_signal);
unifi_error(priv, "Failed to allocate bulk data buffers for client.\n"); unifi_error(priv, "Failed to allocate bulk data buffers for client.\n");
return NULL; return NULL;
} }
...@@ -164,14 +164,14 @@ ul_deregister_client(ul_client_t *ul_client) ...@@ -164,14 +164,14 @@ ul_deregister_client(ul_client_t *ul_client)
unifi_trace(priv, UDBG5, "UDI (0x%x) deregistered.\n", ul_client); unifi_trace(priv, UDBG5, "UDI (0x%x) deregistered.\n", ul_client);
/* Free memory allocated for the reply signal and its bulk data. */ /* Free memory allocated for the reply signal and its bulk data. */
CsrPmemFree(ul_client->reply_signal); kfree(ul_client->reply_signal);
for (ref = 0; ref < UNIFI_MAX_DATA_REFERENCES; ref ++) { for (ref = 0; ref < UNIFI_MAX_DATA_REFERENCES; ref ++) {
CsrPmemFree(ul_client->reply_bulkdata[ref]); kfree(ul_client->reply_bulkdata[ref]);
} }
if (ul_client->snap_filter.count) { if (ul_client->snap_filter.count) {
ul_client->snap_filter.count = 0; ul_client->snap_filter.count = 0;
CsrPmemFree(ul_client->snap_filter.protocols); kfree(ul_client->snap_filter.protocols);
} }
/* Free anything pending on the udi_log list */ /* Free anything pending on the udi_log list */
......
...@@ -423,7 +423,7 @@ uf_multicast_list_wq(struct work_struct *work) ...@@ -423,7 +423,7 @@ uf_multicast_list_wq(struct work_struct *work)
} }
if (priv->smepriv == NULL) { if (priv->smepriv == NULL) {
CsrPmemFree(multicast_address_list); kfree(multicast_address_list);
return; return;
} }
...@@ -433,7 +433,7 @@ uf_multicast_list_wq(struct work_struct *work) ...@@ -433,7 +433,7 @@ uf_multicast_list_wq(struct work_struct *work)
mc_count, multicast_address_list); mc_count, multicast_address_list);
/* The SME will take a copy of the addreses*/ /* The SME will take a copy of the addreses*/
CsrPmemFree(multicast_address_list); kfree(multicast_address_list);
} }
...@@ -572,7 +572,7 @@ int unifi_cfg_packet_filters(unifi_priv_t *priv, unsigned char *arg) ...@@ -572,7 +572,7 @@ int unifi_cfg_packet_filters(unifi_priv_t *priv, unsigned char *arg)
/* Free any TCLASs previously allocated */ /* Free any TCLASs previously allocated */
if (priv->packet_filters.tclas_ies_length) { if (priv->packet_filters.tclas_ies_length) {
CsrPmemFree(priv->filter_tclas_ies); kfree(priv->filter_tclas_ies);
priv->filter_tclas_ies = NULL; priv->filter_tclas_ies = NULL;
} }
...@@ -683,7 +683,7 @@ int unifi_cfg_wmm_addts(unifi_priv_t *priv, unsigned char *arg) ...@@ -683,7 +683,7 @@ int unifi_cfg_wmm_addts(unifi_priv_t *priv, unsigned char *arg)
rc = copy_from_user(addts_ie, addts_params, addts_ie_length); rc = copy_from_user(addts_ie, addts_params, addts_ie_length);
if (rc) { if (rc) {
unifi_error(priv, "unifi_cfg_wmm_addts: Failed to get the addts buffer\n"); unifi_error(priv, "unifi_cfg_wmm_addts: Failed to get the addts buffer\n");
CsrPmemFree(addts_ie); kfree(addts_ie);
return -EFAULT; return -EFAULT;
} }
...@@ -695,7 +695,7 @@ int unifi_cfg_wmm_addts(unifi_priv_t *priv, unsigned char *arg) ...@@ -695,7 +695,7 @@ int unifi_cfg_wmm_addts(unifi_priv_t *priv, unsigned char *arg)
rc = sme_mgt_tspec(priv, CSR_WIFI_SME_LIST_ACTION_ADD, addts_tid, rc = sme_mgt_tspec(priv, CSR_WIFI_SME_LIST_ACTION_ADD, addts_tid,
&tspec, &tclas); &tspec, &tclas);
CsrPmemFree(addts_ie); kfree(addts_ie);
return rc; return rc;
} }
...@@ -1229,7 +1229,7 @@ void uf_send_pkt_to_encrypt(struct work_struct *work) ...@@ -1229,7 +1229,7 @@ void uf_send_pkt_to_encrypt(struct work_struct *work)
CsrWifiRouterCtrlWapiUnicastTxEncryptIndSend(priv->CSR_WIFI_SME_IFACEQUEUE, 0, interfaceTag, pktBulkDataLength, pktBulkData); CsrWifiRouterCtrlWapiUnicastTxEncryptIndSend(priv->CSR_WIFI_SME_IFACEQUEUE, 0, interfaceTag, pktBulkDataLength, pktBulkData);
unifi_trace(priv, UDBG1, "WapiUnicastTxEncryptInd sent to SME\n"); unifi_trace(priv, UDBG1, "WapiUnicastTxEncryptInd sent to SME\n");
CsrPmemFree(pktBulkData); /* Would have been copied over by the SME Handler */ kfree(pktBulkData); /* Would have been copied over by the SME Handler */
func_exit(); func_exit();
} else { } else {
......
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