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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
#include <linux/module.h>
#include <linux/types.h>
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_panic.h"
#include "csr_sched.h"
{
CsrMsgConvPrimEntry *s_next;
s_next = s->next;
- CsrPmemFree(s);
+ kfree(s);
s = s_next;
}
- CsrPmemFree(converter);
+ kfree(converter);
converter = NULL;
}
EXPORT_SYMBOL_GPL(CsrMsgConvDeinit);
return ret;
}
EXPORT_SYMBOL_GPL(CsrPmemAlloc);
-
-void CsrPmemFree(void *ptr)
-{
- if (ptr == NULL)
- {
- return;
- }
-
- kfree(ptr);
-}
-EXPORT_SYMBOL_GPL(CsrPmemFree);
void *CsrPmemAlloc(size_t size);
#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
/*****************************************************************************
#define CsrPmemAlloc(size) CsrPmemDebugAlloc(size, CSR_PMEM_DEBUG_TYPE_PMEM_ALLOC, __FILE__, __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
* 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
* 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
* void.
*****************************************************************************/
#include <linux/module.h>
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_unicode.h"
#include "csr_macro.h"
*outputString++ = 0;
- CsrPmemFree(str);
+ kfree(str);
}
}
*outputString++ = 0;
- CsrPmemFree(str);
+ kfree(str);
}
}
*****************************************************************************/
/* Note: this is an auto-generated file. */
-
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_wifi_nme_ap_prim.h"
#include "csr_wifi_nme_ap_lib.h"
case CSR_WIFI_NME_AP_CONFIG_SET_REQ:
{
CsrWifiNmeApConfigSetReq *p = (CsrWifiNmeApConfigSetReq *)message;
- CsrPmemFree(p->apMacConfig.macAddressList);
+ kfree(p->apMacConfig.macAddressList);
p->apMacConfig.macAddressList = NULL;
break;
}
switch (p->apCredentials.nmeAuthType.authTypePersonal.pskOrPassphrase)
{
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;
break;
default:
u16 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;
}
}
- CsrPmemFree(p->p2pGoParam.operatingChanList.channelEntryList);
+ kfree(p->p2pGoParam.operatingChanList.channelEntryList);
p->p2pGoParam.operatingChanList.channelEntryList = NULL;
break;
}
/* Note: this is an auto-generated file. */
#include <linux/string.h>
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_msgconv.h"
#include "csr_unicode.h"
void CsrWifiNmeApPfree(void *ptr)
{
- CsrPmemFree(ptr);
+ kfree(ptr);
}
void CsrWifiNmeApConfigSetReqSerFree(void *voidPrimitivePointer)
{
CsrWifiNmeApConfigSetReq *primitive = (CsrWifiNmeApConfigSetReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->apMacConfig.macAddressList);
- CsrPmemFree(primitive);
+ kfree(primitive->apMacConfig.macAddressList);
+ kfree(primitive);
}
switch (primitive->apCredentials.nmeAuthType.authTypePersonal.pskOrPassphrase)
{
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;
default:
break;
u16 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);
- CsrPmemFree(primitive);
+ kfree(primitive->p2pGoParam.operatingChanList.channelEntryList);
+ kfree(primitive);
}
*****************************************************************************/
/* Note: this is an auto-generated file. */
-
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_wifi_router_ctrl_prim.h"
#include "csr_wifi_router_ctrl_lib.h"
case CSR_WIFI_ROUTER_CTRL_HIP_REQ:
{
CsrWifiRouterCtrlHipReq *p = (CsrWifiRouterCtrlHipReq *)message;
- CsrPmemFree(p->mlmeCommand);
+ kfree(p->mlmeCommand);
p->mlmeCommand = NULL;
- CsrPmemFree(p->dataRef1);
+ kfree(p->dataRef1);
p->dataRef1 = NULL;
- CsrPmemFree(p->dataRef2);
+ kfree(p->dataRef2);
p->dataRef2 = NULL;
break;
}
case CSR_WIFI_ROUTER_CTRL_MULTICAST_ADDRESS_RES:
{
CsrWifiRouterCtrlMulticastAddressRes *p = (CsrWifiRouterCtrlMulticastAddressRes *)message;
- CsrPmemFree(p->getAddresses);
+ kfree(p->getAddresses);
p->getAddresses = NULL;
break;
}
case CSR_WIFI_ROUTER_CTRL_TCLAS_ADD_REQ:
{
CsrWifiRouterCtrlTclasAddReq *p = (CsrWifiRouterCtrlTclasAddReq *)message;
- CsrPmemFree(p->tclas);
+ kfree(p->tclas);
p->tclas = NULL;
break;
}
case CSR_WIFI_ROUTER_CTRL_TCLAS_DEL_REQ:
{
CsrWifiRouterCtrlTclasDelReq *p = (CsrWifiRouterCtrlTclasDelReq *)message;
- CsrPmemFree(p->tclas);
+ kfree(p->tclas);
p->tclas = NULL;
break;
}
case CSR_WIFI_ROUTER_CTRL_WIFI_ON_REQ:
{
CsrWifiRouterCtrlWifiOnReq *p = (CsrWifiRouterCtrlWifiOnReq *)message;
- CsrPmemFree(p->data);
+ kfree(p->data);
p->data = NULL;
break;
}
case CSR_WIFI_ROUTER_CTRL_WIFI_ON_RES:
{
CsrWifiRouterCtrlWifiOnRes *p = (CsrWifiRouterCtrlWifiOnRes *)message;
- CsrPmemFree(p->smeVersions.smeBuild);
+ kfree(p->smeVersions.smeBuild);
p->smeVersions.smeBuild = NULL;
break;
}
case CSR_WIFI_ROUTER_CTRL_WAPI_RX_PKT_REQ:
{
CsrWifiRouterCtrlWapiRxPktReq *p = (CsrWifiRouterCtrlWapiRxPktReq *)message;
- CsrPmemFree(p->signal);
+ kfree(p->signal);
p->signal = NULL;
- CsrPmemFree(p->data);
+ kfree(p->data);
p->data = NULL;
break;
}
case CSR_WIFI_ROUTER_CTRL_WAPI_UNICAST_TX_PKT_REQ:
{
CsrWifiRouterCtrlWapiUnicastTxPktReq *p = (CsrWifiRouterCtrlWapiUnicastTxPktReq *)message;
- CsrPmemFree(p->data);
+ kfree(p->data);
p->data = NULL;
break;
}
*****************************************************************************/
/* Note: this is an auto-generated file. */
-
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_wifi_router_ctrl_prim.h"
#include "csr_wifi_router_ctrl_lib.h"
case CSR_WIFI_ROUTER_CTRL_HIP_IND:
{
CsrWifiRouterCtrlHipInd *p = (CsrWifiRouterCtrlHipInd *)message;
- CsrPmemFree(p->mlmeCommand);
+ kfree(p->mlmeCommand);
p->mlmeCommand = NULL;
- CsrPmemFree(p->dataRef1);
+ kfree(p->dataRef1);
p->dataRef1 = NULL;
- CsrPmemFree(p->dataRef2);
+ kfree(p->dataRef2);
p->dataRef2 = NULL;
break;
}
case CSR_WIFI_ROUTER_CTRL_MULTICAST_ADDRESS_IND:
{
CsrWifiRouterCtrlMulticastAddressInd *p = (CsrWifiRouterCtrlMulticastAddressInd *)message;
- CsrPmemFree(p->setAddresses);
+ kfree(p->setAddresses);
p->setAddresses = NULL;
break;
}
case CSR_WIFI_ROUTER_CTRL_WIFI_ON_IND:
{
CsrWifiRouterCtrlWifiOnInd *p = (CsrWifiRouterCtrlWifiOnInd *)message;
- CsrPmemFree(p->versions.routerBuild);
+ kfree(p->versions.routerBuild);
p->versions.routerBuild = NULL;
break;
}
case CSR_WIFI_ROUTER_CTRL_WAPI_RX_MIC_CHECK_IND:
{
CsrWifiRouterCtrlWapiRxMicCheckInd *p = (CsrWifiRouterCtrlWapiRxMicCheckInd *)message;
- CsrPmemFree(p->signal);
+ kfree(p->signal);
p->signal = NULL;
- CsrPmemFree(p->data);
+ kfree(p->data);
p->data = NULL;
break;
}
case CSR_WIFI_ROUTER_CTRL_WAPI_UNICAST_TX_ENCRYPT_IND:
{
CsrWifiRouterCtrlWapiUnicastTxEncryptInd *p = (CsrWifiRouterCtrlWapiUnicastTxEncryptInd *)message;
- CsrPmemFree(p->data);
+ kfree(p->data);
p->data = NULL;
break;
}
/* Note: this is an auto-generated file. */
#include <linux/string.h>
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_msgconv.h"
#include "csr_unicode.h"
void CsrWifiRouterCtrlPfree(void *ptr)
{
- CsrPmemFree(ptr);
+ kfree(ptr);
}
void CsrWifiRouterCtrlHipReqSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlHipReq *primitive = (CsrWifiRouterCtrlHipReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->mlmeCommand);
- CsrPmemFree(primitive->dataRef1);
- CsrPmemFree(primitive->dataRef2);
- CsrPmemFree(primitive);
+ kfree(primitive->mlmeCommand);
+ kfree(primitive->dataRef1);
+ kfree(primitive->dataRef2);
+ kfree(primitive);
}
void CsrWifiRouterCtrlMulticastAddressResSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlMulticastAddressRes *primitive = (CsrWifiRouterCtrlMulticastAddressRes *) voidPrimitivePointer;
- CsrPmemFree(primitive->getAddresses);
- CsrPmemFree(primitive);
+ kfree(primitive->getAddresses);
+ kfree(primitive);
}
void CsrWifiRouterCtrlTclasAddReqSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlTclasAddReq *primitive = (CsrWifiRouterCtrlTclasAddReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->tclas);
- CsrPmemFree(primitive);
+ kfree(primitive->tclas);
+ kfree(primitive);
}
void CsrWifiRouterCtrlTclasDelReqSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlTclasDelReq *primitive = (CsrWifiRouterCtrlTclasDelReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->tclas);
- CsrPmemFree(primitive);
+ kfree(primitive->tclas);
+ kfree(primitive);
}
void CsrWifiRouterCtrlWifiOnReqSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlWifiOnReq *primitive = (CsrWifiRouterCtrlWifiOnReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->data);
- CsrPmemFree(primitive);
+ kfree(primitive->data);
+ kfree(primitive);
}
void CsrWifiRouterCtrlWifiOnResSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlWifiOnRes *primitive = (CsrWifiRouterCtrlWifiOnRes *) voidPrimitivePointer;
- CsrPmemFree(primitive->smeVersions.smeBuild);
- CsrPmemFree(primitive);
+ kfree(primitive->smeVersions.smeBuild);
+ kfree(primitive);
}
void CsrWifiRouterCtrlWapiRxPktReqSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlWapiRxPktReq *primitive = (CsrWifiRouterCtrlWapiRxPktReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->signal);
- CsrPmemFree(primitive->data);
- CsrPmemFree(primitive);
+ kfree(primitive->signal);
+ kfree(primitive->data);
+ kfree(primitive);
}
void CsrWifiRouterCtrlWapiUnicastTxPktReqSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlWapiUnicastTxPktReq *primitive = (CsrWifiRouterCtrlWapiUnicastTxPktReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->data);
- CsrPmemFree(primitive);
+ kfree(primitive->data);
+ kfree(primitive);
}
void CsrWifiRouterCtrlHipIndSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlHipInd *primitive = (CsrWifiRouterCtrlHipInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->mlmeCommand);
- CsrPmemFree(primitive->dataRef1);
- CsrPmemFree(primitive->dataRef2);
- CsrPmemFree(primitive);
+ kfree(primitive->mlmeCommand);
+ kfree(primitive->dataRef1);
+ kfree(primitive->dataRef2);
+ kfree(primitive);
}
void CsrWifiRouterCtrlMulticastAddressIndSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlMulticastAddressInd *primitive = (CsrWifiRouterCtrlMulticastAddressInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->setAddresses);
- CsrPmemFree(primitive);
+ kfree(primitive->setAddresses);
+ kfree(primitive);
}
void CsrWifiRouterCtrlWifiOnIndSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlWifiOnInd *primitive = (CsrWifiRouterCtrlWifiOnInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->versions.routerBuild);
- CsrPmemFree(primitive);
+ kfree(primitive->versions.routerBuild);
+ kfree(primitive);
}
void CsrWifiRouterCtrlWapiRxMicCheckIndSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlWapiRxMicCheckInd *primitive = (CsrWifiRouterCtrlWapiRxMicCheckInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->signal);
- CsrPmemFree(primitive->data);
- CsrPmemFree(primitive);
+ kfree(primitive->signal);
+ kfree(primitive->data);
+ kfree(primitive);
}
void CsrWifiRouterCtrlWapiUnicastTxEncryptIndSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterCtrlWapiUnicastTxEncryptInd *primitive = (CsrWifiRouterCtrlWapiUnicastTxEncryptInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->data);
- CsrPmemFree(primitive);
+ kfree(primitive->data);
+ kfree(primitive);
}
*****************************************************************************/
/* Note: this is an auto-generated file. */
-
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_wifi_router_prim.h"
#include "csr_wifi_router_lib.h"
case CSR_WIFI_ROUTER_MA_PACKET_REQ:
{
CsrWifiRouterMaPacketReq *p = (CsrWifiRouterMaPacketReq *)message;
- CsrPmemFree(p->frame);
+ kfree(p->frame);
p->frame = NULL;
break;
}
*****************************************************************************/
/* Note: this is an auto-generated file. */
-
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_wifi_router_prim.h"
#include "csr_wifi_router_lib.h"
case CSR_WIFI_ROUTER_MA_PACKET_IND:
{
CsrWifiRouterMaPacketInd *p = (CsrWifiRouterMaPacketInd *)message;
- CsrPmemFree(p->frame);
+ kfree(p->frame);
p->frame = NULL;
break;
}
*****************************************************************************/
/* Note: this is an auto-generated file. */
-
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_msgconv.h"
#include "csr_unicode.h"
void CsrWifiRouterPfree(void *ptr)
{
- CsrPmemFree(ptr);
+ kfree(ptr);
}
void CsrWifiRouterMaPacketReqSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterMaPacketReq *primitive = (CsrWifiRouterMaPacketReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->frame);
- CsrPmemFree(primitive);
+ kfree(primitive->frame);
+ kfree(primitive);
}
void CsrWifiRouterMaPacketIndSerFree(void *voidPrimitivePointer)
{
CsrWifiRouterMaPacketInd *primitive = (CsrWifiRouterMaPacketInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->frame);
- CsrPmemFree(primitive);
+ kfree(primitive->frame);
+ kfree(primitive);
}
unifi_error(priv, "CsrWifiRouterTransportDeserialiseAndSend unhandled prim type 0x%.4X\n", primType);
break;
}
- CsrPmemFree(msg);
+ kfree(msg);
}
static void CsrWifiRouterTransportSerialiseAndSend(u16 primType, void* msg)
uf_sme_queue_message(drvpriv, encodeBuffer, encodeBufferLen);
/* 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)
*****************************************************************************/
/* Note: this is an auto-generated file. */
-
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_wifi_sme_prim.h"
#include "csr_wifi_sme_lib.h"
case CSR_WIFI_SME_BLACKLIST_REQ:
{
CsrWifiSmeBlacklistReq *p = (CsrWifiSmeBlacklistReq *)message;
- CsrPmemFree(p->setAddresses);
+ kfree(p->setAddresses);
p->setAddresses = NULL;
break;
}
case CSR_WIFI_SME_CALIBRATION_DATA_SET_REQ:
{
CsrWifiSmeCalibrationDataSetReq *p = (CsrWifiSmeCalibrationDataSetReq *)message;
- CsrPmemFree(p->calibrationData);
+ kfree(p->calibrationData);
p->calibrationData = NULL;
break;
}
case CSR_WIFI_SME_CONNECT_REQ:
{
CsrWifiSmeConnectReq *p = (CsrWifiSmeConnectReq *)message;
- CsrPmemFree(p->connectionConfig.mlmeAssociateReqInformationElements);
+ kfree(p->connectionConfig.mlmeAssociateReqInformationElements);
p->connectionConfig.mlmeAssociateReqInformationElements = NULL;
break;
}
case CSR_WIFI_SME_MIB_GET_NEXT_REQ:
{
CsrWifiSmeMibGetNextReq *p = (CsrWifiSmeMibGetNextReq *)message;
- CsrPmemFree(p->mibAttribute);
+ kfree(p->mibAttribute);
p->mibAttribute = NULL;
break;
}
case CSR_WIFI_SME_MIB_GET_REQ:
{
CsrWifiSmeMibGetReq *p = (CsrWifiSmeMibGetReq *)message;
- CsrPmemFree(p->mibAttribute);
+ kfree(p->mibAttribute);
p->mibAttribute = NULL;
break;
}
case CSR_WIFI_SME_MIB_SET_REQ:
{
CsrWifiSmeMibSetReq *p = (CsrWifiSmeMibSetReq *)message;
- CsrPmemFree(p->mibAttribute);
+ kfree(p->mibAttribute);
p->mibAttribute = NULL;
break;
}
case CSR_WIFI_SME_MULTICAST_ADDRESS_REQ:
{
CsrWifiSmeMulticastAddressReq *p = (CsrWifiSmeMulticastAddressReq *)message;
- CsrPmemFree(p->setAddresses);
+ kfree(p->setAddresses);
p->setAddresses = NULL;
break;
}
case CSR_WIFI_SME_PACKET_FILTER_SET_REQ:
{
CsrWifiSmePacketFilterSetReq *p = (CsrWifiSmePacketFilterSetReq *)message;
- CsrPmemFree(p->filter);
+ kfree(p->filter);
p->filter = NULL;
break;
}
case CSR_WIFI_SME_PMKID_REQ:
{
CsrWifiSmePmkidReq *p = (CsrWifiSmePmkidReq *)message;
- CsrPmemFree(p->setPmkids);
+ kfree(p->setPmkids);
p->setPmkids = NULL;
break;
}
case CSR_WIFI_SME_SCAN_CONFIG_SET_REQ:
{
CsrWifiSmeScanConfigSetReq *p = (CsrWifiSmeScanConfigSetReq *)message;
- CsrPmemFree(p->scanConfig.passiveChannelList);
+ kfree(p->scanConfig.passiveChannelList);
p->scanConfig.passiveChannelList = NULL;
break;
}
case CSR_WIFI_SME_SCAN_FULL_REQ:
{
CsrWifiSmeScanFullReq *p = (CsrWifiSmeScanFullReq *)message;
- CsrPmemFree(p->ssid);
+ kfree(p->ssid);
p->ssid = NULL;
- CsrPmemFree(p->channelList);
+ kfree(p->channelList);
p->channelList = NULL;
- CsrPmemFree(p->probeIe);
+ kfree(p->probeIe);
p->probeIe = NULL;
break;
}
case CSR_WIFI_SME_TSPEC_REQ:
{
CsrWifiSmeTspecReq *p = (CsrWifiSmeTspecReq *)message;
- CsrPmemFree(p->tspec);
+ kfree(p->tspec);
p->tspec = NULL;
- CsrPmemFree(p->tclas);
+ kfree(p->tclas);
p->tclas = NULL;
break;
}
u16 i1;
for (i1 = 0; i1 < p->mibFilesCount; i1++)
{
- CsrPmemFree(p->mibFiles[i1].data);
+ kfree(p->mibFiles[i1].data);
p->mibFiles[i1].data = NULL;
}
}
- CsrPmemFree(p->mibFiles);
+ kfree(p->mibFiles);
p->mibFiles = NULL;
break;
}
u16 i1;
for (i1 = 0; i1 < p->mibFilesCount; i1++)
{
- CsrPmemFree(p->mibFiles[i1].data);
+ kfree(p->mibFiles[i1].data);
p->mibFiles[i1].data = NULL;
}
}
- CsrPmemFree(p->mibFiles);
+ kfree(p->mibFiles);
p->mibFiles = NULL;
break;
}
case CSR_WIFI_SME_CLOAKED_SSIDS_SET_REQ:
{
CsrWifiSmeCloakedSsidsSetReq *p = (CsrWifiSmeCloakedSsidsSetReq *)message;
- CsrPmemFree(p->cloakedSsids.cloakedSsids);
+ kfree(p->cloakedSsids.cloakedSsids);
p->cloakedSsids.cloakedSsids = NULL;
break;
}
case CSR_WIFI_SME_WPS_CONFIGURATION_REQ:
{
CsrWifiSmeWpsConfigurationReq *p = (CsrWifiSmeWpsConfigurationReq *)message;
- CsrPmemFree(p->wpsConfig.secondaryDeviceType);
+ kfree(p->wpsConfig.secondaryDeviceType);
p->wpsConfig.secondaryDeviceType = NULL;
break;
}
case CSR_WIFI_SME_SET_REQ:
{
CsrWifiSmeSetReq *p = (CsrWifiSmeSetReq *)message;
- CsrPmemFree(p->data);
+ kfree(p->data);
p->data = NULL;
break;
}
*****************************************************************************/
/* Note: this is an auto-generated file. */
-
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_wifi_sme_prim.h"
#include "csr_wifi_sme_lib.h"
case CSR_WIFI_SME_ASSOCIATION_COMPLETE_IND:
{
CsrWifiSmeAssociationCompleteInd *p = (CsrWifiSmeAssociationCompleteInd *)message;
- CsrPmemFree(p->connectionInfo.beaconFrame);
+ kfree(p->connectionInfo.beaconFrame);
p->connectionInfo.beaconFrame = NULL;
- CsrPmemFree(p->connectionInfo.associationReqFrame);
+ kfree(p->connectionInfo.associationReqFrame);
p->connectionInfo.associationReqFrame = NULL;
- CsrPmemFree(p->connectionInfo.associationRspFrame);
+ kfree(p->connectionInfo.associationRspFrame);
p->connectionInfo.associationRspFrame = NULL;
- CsrPmemFree(p->connectionInfo.assocScanInfoElements);
+ kfree(p->connectionInfo.assocScanInfoElements);
p->connectionInfo.assocScanInfoElements = NULL;
- CsrPmemFree(p->connectionInfo.assocReqInfoElements);
+ kfree(p->connectionInfo.assocReqInfoElements);
p->connectionInfo.assocReqInfoElements = NULL;
- CsrPmemFree(p->connectionInfo.assocRspInfoElements);
+ kfree(p->connectionInfo.assocRspInfoElements);
p->connectionInfo.assocRspInfoElements = NULL;
break;
}
case CSR_WIFI_SME_BLACKLIST_CFM:
{
CsrWifiSmeBlacklistCfm *p = (CsrWifiSmeBlacklistCfm *)message;
- CsrPmemFree(p->getAddresses);
+ kfree(p->getAddresses);
p->getAddresses = NULL;
break;
}
case CSR_WIFI_SME_CALIBRATION_DATA_GET_CFM:
{
CsrWifiSmeCalibrationDataGetCfm *p = (CsrWifiSmeCalibrationDataGetCfm *)message;
- CsrPmemFree(p->calibrationData);
+ kfree(p->calibrationData);
p->calibrationData = NULL;
break;
}
case CSR_WIFI_SME_CONNECTION_CONFIG_GET_CFM:
{
CsrWifiSmeConnectionConfigGetCfm *p = (CsrWifiSmeConnectionConfigGetCfm *)message;
- CsrPmemFree(p->connectionConfig.mlmeAssociateReqInformationElements);
+ kfree(p->connectionConfig.mlmeAssociateReqInformationElements);
p->connectionConfig.mlmeAssociateReqInformationElements = NULL;
break;
}
case CSR_WIFI_SME_CONNECTION_INFO_GET_CFM:
{
CsrWifiSmeConnectionInfoGetCfm *p = (CsrWifiSmeConnectionInfoGetCfm *)message;
- CsrPmemFree(p->connectionInfo.beaconFrame);
+ kfree(p->connectionInfo.beaconFrame);
p->connectionInfo.beaconFrame = NULL;
- CsrPmemFree(p->connectionInfo.associationReqFrame);
+ kfree(p->connectionInfo.associationReqFrame);
p->connectionInfo.associationReqFrame = NULL;
- CsrPmemFree(p->connectionInfo.associationRspFrame);
+ kfree(p->connectionInfo.associationRspFrame);
p->connectionInfo.associationRspFrame = NULL;
- CsrPmemFree(p->connectionInfo.assocScanInfoElements);
+ kfree(p->connectionInfo.assocScanInfoElements);
p->connectionInfo.assocScanInfoElements = NULL;
- CsrPmemFree(p->connectionInfo.assocReqInfoElements);
+ kfree(p->connectionInfo.assocReqInfoElements);
p->connectionInfo.assocReqInfoElements = NULL;
- CsrPmemFree(p->connectionInfo.assocRspInfoElements);
+ kfree(p->connectionInfo.assocRspInfoElements);
p->connectionInfo.assocRspInfoElements = NULL;
break;
}
case CSR_WIFI_SME_MEDIA_STATUS_IND:
{
CsrWifiSmeMediaStatusInd *p = (CsrWifiSmeMediaStatusInd *)message;
- CsrPmemFree(p->connectionInfo.beaconFrame);
+ kfree(p->connectionInfo.beaconFrame);
p->connectionInfo.beaconFrame = NULL;
- CsrPmemFree(p->connectionInfo.associationReqFrame);
+ kfree(p->connectionInfo.associationReqFrame);
p->connectionInfo.associationReqFrame = NULL;
- CsrPmemFree(p->connectionInfo.associationRspFrame);
+ kfree(p->connectionInfo.associationRspFrame);
p->connectionInfo.associationRspFrame = NULL;
- CsrPmemFree(p->connectionInfo.assocScanInfoElements);
+ kfree(p->connectionInfo.assocScanInfoElements);
p->connectionInfo.assocScanInfoElements = NULL;
- CsrPmemFree(p->connectionInfo.assocReqInfoElements);
+ kfree(p->connectionInfo.assocReqInfoElements);
p->connectionInfo.assocReqInfoElements = NULL;
- CsrPmemFree(p->connectionInfo.assocRspInfoElements);
+ kfree(p->connectionInfo.assocRspInfoElements);
p->connectionInfo.assocRspInfoElements = NULL;
break;
}
case CSR_WIFI_SME_MIB_GET_CFM:
{
CsrWifiSmeMibGetCfm *p = (CsrWifiSmeMibGetCfm *)message;
- CsrPmemFree(p->mibAttribute);
+ kfree(p->mibAttribute);
p->mibAttribute = NULL;
break;
}
case CSR_WIFI_SME_MIB_GET_NEXT_CFM:
{
CsrWifiSmeMibGetNextCfm *p = (CsrWifiSmeMibGetNextCfm *)message;
- CsrPmemFree(p->mibAttribute);
+ kfree(p->mibAttribute);
p->mibAttribute = NULL;
break;
}
case CSR_WIFI_SME_MULTICAST_ADDRESS_CFM:
{
CsrWifiSmeMulticastAddressCfm *p = (CsrWifiSmeMulticastAddressCfm *)message;
- CsrPmemFree(p->getAddresses);
+ kfree(p->getAddresses);
p->getAddresses = NULL;
break;
}
case CSR_WIFI_SME_PMKID_CANDIDATE_LIST_IND:
{
CsrWifiSmePmkidCandidateListInd *p = (CsrWifiSmePmkidCandidateListInd *)message;
- CsrPmemFree(p->pmkidCandidates);
+ kfree(p->pmkidCandidates);
p->pmkidCandidates = NULL;
break;
}
case CSR_WIFI_SME_PMKID_CFM:
{
CsrWifiSmePmkidCfm *p = (CsrWifiSmePmkidCfm *)message;
- CsrPmemFree(p->getPmkids);
+ kfree(p->getPmkids);
p->getPmkids = NULL;
break;
}
case CSR_WIFI_SME_SCAN_CONFIG_GET_CFM:
{
CsrWifiSmeScanConfigGetCfm *p = (CsrWifiSmeScanConfigGetCfm *)message;
- CsrPmemFree(p->scanConfig.passiveChannelList);
+ kfree(p->scanConfig.passiveChannelList);
p->scanConfig.passiveChannelList = NULL;
break;
}
case CSR_WIFI_SME_SCAN_RESULT_IND:
{
CsrWifiSmeScanResultInd *p = (CsrWifiSmeScanResultInd *)message;
- CsrPmemFree(p->result.informationElements);
+ kfree(p->result.informationElements);
p->result.informationElements = NULL;
switch (p->result.p2pDeviceRole)
{
u16 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;
}
}
- CsrPmemFree(p->result.deviceInfo.groupInfo.p2PClientInfo);
+ kfree(p->result.deviceInfo.groupInfo.p2PClientInfo);
p->result.deviceInfo.groupInfo.p2PClientInfo = NULL;
break;
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;
break;
default:
u16 i1;
for (i1 = 0; i1 < p->scanResultsCount; i1++)
{
- CsrPmemFree(p->scanResults[i1].informationElements);
+ kfree(p->scanResults[i1].informationElements);
p->scanResults[i1].informationElements = NULL;
switch (p->scanResults[i1].p2pDeviceRole)
{
u16 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;
}
}
- CsrPmemFree(p->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo);
+ kfree(p->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo);
p->scanResults[i1].deviceInfo.groupInfo.p2PClientInfo = NULL;
break;
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;
break;
default:
}
}
}
- CsrPmemFree(p->scanResults);
+ kfree(p->scanResults);
p->scanResults = NULL;
break;
}
case CSR_WIFI_SME_TSPEC_IND:
{
CsrWifiSmeTspecInd *p = (CsrWifiSmeTspecInd *)message;
- CsrPmemFree(p->tspec);
+ kfree(p->tspec);
p->tspec = NULL;
break;
}
case CSR_WIFI_SME_TSPEC_CFM:
{
CsrWifiSmeTspecCfm *p = (CsrWifiSmeTspecCfm *)message;
- CsrPmemFree(p->tspec);
+ kfree(p->tspec);
p->tspec = NULL;
break;
}
case CSR_WIFI_SME_VERSIONS_GET_CFM:
{
CsrWifiSmeVersionsGetCfm *p = (CsrWifiSmeVersionsGetCfm *)message;
- CsrPmemFree(p->versions.routerBuild);
+ kfree(p->versions.routerBuild);
p->versions.routerBuild = NULL;
- CsrPmemFree(p->versions.smeBuild);
+ kfree(p->versions.smeBuild);
p->versions.smeBuild = NULL;
break;
}
case CSR_WIFI_SME_CLOAKED_SSIDS_GET_CFM:
{
CsrWifiSmeCloakedSsidsGetCfm *p = (CsrWifiSmeCloakedSsidsGetCfm *)message;
- CsrPmemFree(p->cloakedSsids.cloakedSsids);
+ kfree(p->cloakedSsids.cloakedSsids);
p->cloakedSsids.cloakedSsids = NULL;
break;
}
case CSR_WIFI_SME_ERROR_IND:
{
CsrWifiSmeErrorInd *p = (CsrWifiSmeErrorInd *)message;
- CsrPmemFree(p->errorMessage);
+ kfree(p->errorMessage);
p->errorMessage = NULL;
break;
}
case CSR_WIFI_SME_INFO_IND:
{
CsrWifiSmeInfoInd *p = (CsrWifiSmeInfoInd *)message;
- CsrPmemFree(p->infoMessage);
+ kfree(p->infoMessage);
p->infoMessage = NULL;
break;
}
case CSR_WIFI_SME_CORE_DUMP_IND:
{
CsrWifiSmeCoreDumpInd *p = (CsrWifiSmeCoreDumpInd *)message;
- CsrPmemFree(p->data);
+ kfree(p->data);
p->data = NULL;
break;
}
/* Note: this is an auto-generated file. */
#include <linux/string.h>
+#include <linux/slab.h>
#include "csr_pmem.h"
#include "csr_msgconv.h"
#include "csr_unicode.h"
void CsrWifiSmePfree(void *ptr)
{
- CsrPmemFree(ptr);
+ kfree(ptr);
}
void CsrWifiSmeBlacklistReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeBlacklistReq *primitive = (CsrWifiSmeBlacklistReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->setAddresses);
- CsrPmemFree(primitive);
+ kfree(primitive->setAddresses);
+ kfree(primitive);
}
void CsrWifiSmeCalibrationDataSetReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeCalibrationDataSetReq *primitive = (CsrWifiSmeCalibrationDataSetReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->calibrationData);
- CsrPmemFree(primitive);
+ kfree(primitive->calibrationData);
+ kfree(primitive);
}
void CsrWifiSmeConnectReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeConnectReq *primitive = (CsrWifiSmeConnectReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->connectionConfig.mlmeAssociateReqInformationElements);
- CsrPmemFree(primitive);
+ kfree(primitive->connectionConfig.mlmeAssociateReqInformationElements);
+ kfree(primitive);
}
void CsrWifiSmeMibGetNextReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeMibGetNextReq *primitive = (CsrWifiSmeMibGetNextReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->mibAttribute);
- CsrPmemFree(primitive);
+ kfree(primitive->mibAttribute);
+ kfree(primitive);
}
void CsrWifiSmeMibGetReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeMibGetReq *primitive = (CsrWifiSmeMibGetReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->mibAttribute);
- CsrPmemFree(primitive);
+ kfree(primitive->mibAttribute);
+ kfree(primitive);
}
void CsrWifiSmeMibSetReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeMibSetReq *primitive = (CsrWifiSmeMibSetReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->mibAttribute);
- CsrPmemFree(primitive);
+ kfree(primitive->mibAttribute);
+ kfree(primitive);
}
void CsrWifiSmeMulticastAddressReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeMulticastAddressReq *primitive = (CsrWifiSmeMulticastAddressReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->setAddresses);
- CsrPmemFree(primitive);
+ kfree(primitive->setAddresses);
+ kfree(primitive);
}
void CsrWifiSmePacketFilterSetReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmePacketFilterSetReq *primitive = (CsrWifiSmePacketFilterSetReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->filter);
- CsrPmemFree(primitive);
+ kfree(primitive->filter);
+ kfree(primitive);
}
void CsrWifiSmePmkidReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmePmkidReq *primitive = (CsrWifiSmePmkidReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->setPmkids);
- CsrPmemFree(primitive);
+ kfree(primitive->setPmkids);
+ kfree(primitive);
}
void CsrWifiSmeScanConfigSetReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeScanConfigSetReq *primitive = (CsrWifiSmeScanConfigSetReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->scanConfig.passiveChannelList);
- CsrPmemFree(primitive);
+ kfree(primitive->scanConfig.passiveChannelList);
+ kfree(primitive);
}
void CsrWifiSmeScanFullReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeScanFullReq *primitive = (CsrWifiSmeScanFullReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->ssid);
- CsrPmemFree(primitive->channelList);
- CsrPmemFree(primitive->probeIe);
- CsrPmemFree(primitive);
+ kfree(primitive->ssid);
+ kfree(primitive->channelList);
+ kfree(primitive->probeIe);
+ kfree(primitive);
}
void CsrWifiSmeTspecReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeTspecReq *primitive = (CsrWifiSmeTspecReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->tspec);
- CsrPmemFree(primitive->tclas);
- CsrPmemFree(primitive);
+ kfree(primitive->tspec);
+ kfree(primitive->tclas);
+ kfree(primitive);
}
u16 i1;
for (i1 = 0; i1 < primitive->mibFilesCount; i1++)
{
- CsrPmemFree(primitive->mibFiles[i1].data);
+ kfree(primitive->mibFiles[i1].data);
}
}
- CsrPmemFree(primitive->mibFiles);
- CsrPmemFree(primitive);
+ kfree(primitive->mibFiles);
+ kfree(primitive);
}
u16 i1;
for (i1 = 0; i1 < primitive->mibFilesCount; i1++)
{
- CsrPmemFree(primitive->mibFiles[i1].data);
+ kfree(primitive->mibFiles[i1].data);
}
}
- CsrPmemFree(primitive->mibFiles);
- CsrPmemFree(primitive);
+ kfree(primitive->mibFiles);
+ kfree(primitive);
}
void CsrWifiSmeCloakedSsidsSetReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeCloakedSsidsSetReq *primitive = (CsrWifiSmeCloakedSsidsSetReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->cloakedSsids.cloakedSsids);
- CsrPmemFree(primitive);
+ kfree(primitive->cloakedSsids.cloakedSsids);
+ kfree(primitive);
}
void CsrWifiSmeWpsConfigurationReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeWpsConfigurationReq *primitive = (CsrWifiSmeWpsConfigurationReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->wpsConfig.secondaryDeviceType);
- CsrPmemFree(primitive);
+ kfree(primitive->wpsConfig.secondaryDeviceType);
+ kfree(primitive);
}
void CsrWifiSmeSetReqSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeSetReq *primitive = (CsrWifiSmeSetReq *) voidPrimitivePointer;
- CsrPmemFree(primitive->data);
- CsrPmemFree(primitive);
+ kfree(primitive->data);
+ kfree(primitive);
}
void CsrWifiSmeAssociationCompleteIndSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeAssociationCompleteInd *primitive = (CsrWifiSmeAssociationCompleteInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->connectionInfo.beaconFrame);
- CsrPmemFree(primitive->connectionInfo.associationReqFrame);
- CsrPmemFree(primitive->connectionInfo.associationRspFrame);
- CsrPmemFree(primitive->connectionInfo.assocScanInfoElements);
- CsrPmemFree(primitive->connectionInfo.assocReqInfoElements);
- CsrPmemFree(primitive->connectionInfo.assocRspInfoElements);
- CsrPmemFree(primitive);
+ kfree(primitive->connectionInfo.beaconFrame);
+ kfree(primitive->connectionInfo.associationReqFrame);
+ kfree(primitive->connectionInfo.associationRspFrame);
+ kfree(primitive->connectionInfo.assocScanInfoElements);
+ kfree(primitive->connectionInfo.assocReqInfoElements);
+ kfree(primitive->connectionInfo.assocRspInfoElements);
+ kfree(primitive);
}
void CsrWifiSmeBlacklistCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeBlacklistCfm *primitive = (CsrWifiSmeBlacklistCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->getAddresses);
- CsrPmemFree(primitive);
+ kfree(primitive->getAddresses);
+ kfree(primitive);
}
void CsrWifiSmeCalibrationDataGetCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeCalibrationDataGetCfm *primitive = (CsrWifiSmeCalibrationDataGetCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->calibrationData);
- CsrPmemFree(primitive);
+ kfree(primitive->calibrationData);
+ kfree(primitive);
}
void CsrWifiSmeConnectionConfigGetCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeConnectionConfigGetCfm *primitive = (CsrWifiSmeConnectionConfigGetCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->connectionConfig.mlmeAssociateReqInformationElements);
- CsrPmemFree(primitive);
+ kfree(primitive->connectionConfig.mlmeAssociateReqInformationElements);
+ kfree(primitive);
}
void CsrWifiSmeConnectionInfoGetCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeConnectionInfoGetCfm *primitive = (CsrWifiSmeConnectionInfoGetCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->connectionInfo.beaconFrame);
- CsrPmemFree(primitive->connectionInfo.associationReqFrame);
- CsrPmemFree(primitive->connectionInfo.associationRspFrame);
- CsrPmemFree(primitive->connectionInfo.assocScanInfoElements);
- CsrPmemFree(primitive->connectionInfo.assocReqInfoElements);
- CsrPmemFree(primitive->connectionInfo.assocRspInfoElements);
- CsrPmemFree(primitive);
+ kfree(primitive->connectionInfo.beaconFrame);
+ kfree(primitive->connectionInfo.associationReqFrame);
+ kfree(primitive->connectionInfo.associationRspFrame);
+ kfree(primitive->connectionInfo.assocScanInfoElements);
+ kfree(primitive->connectionInfo.assocReqInfoElements);
+ kfree(primitive->connectionInfo.assocRspInfoElements);
+ kfree(primitive);
}
void CsrWifiSmeMediaStatusIndSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeMediaStatusInd *primitive = (CsrWifiSmeMediaStatusInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->connectionInfo.beaconFrame);
- CsrPmemFree(primitive->connectionInfo.associationReqFrame);
- CsrPmemFree(primitive->connectionInfo.associationRspFrame);
- CsrPmemFree(primitive->connectionInfo.assocScanInfoElements);
- CsrPmemFree(primitive->connectionInfo.assocReqInfoElements);
- CsrPmemFree(primitive->connectionInfo.assocRspInfoElements);
- CsrPmemFree(primitive);
+ kfree(primitive->connectionInfo.beaconFrame);
+ kfree(primitive->connectionInfo.associationReqFrame);
+ kfree(primitive->connectionInfo.associationRspFrame);
+ kfree(primitive->connectionInfo.assocScanInfoElements);
+ kfree(primitive->connectionInfo.assocReqInfoElements);
+ kfree(primitive->connectionInfo.assocRspInfoElements);
+ kfree(primitive);
}
void CsrWifiSmeMibGetCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeMibGetCfm *primitive = (CsrWifiSmeMibGetCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->mibAttribute);
- CsrPmemFree(primitive);
+ kfree(primitive->mibAttribute);
+ kfree(primitive);
}
void CsrWifiSmeMibGetNextCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeMibGetNextCfm *primitive = (CsrWifiSmeMibGetNextCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->mibAttribute);
- CsrPmemFree(primitive);
+ kfree(primitive->mibAttribute);
+ kfree(primitive);
}
void CsrWifiSmeMulticastAddressCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeMulticastAddressCfm *primitive = (CsrWifiSmeMulticastAddressCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->getAddresses);
- CsrPmemFree(primitive);
+ kfree(primitive->getAddresses);
+ kfree(primitive);
}
void CsrWifiSmePmkidCandidateListIndSerFree(void *voidPrimitivePointer)
{
CsrWifiSmePmkidCandidateListInd *primitive = (CsrWifiSmePmkidCandidateListInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->pmkidCandidates);
- CsrPmemFree(primitive);
+ kfree(primitive->pmkidCandidates);
+ kfree(primitive);
}
void CsrWifiSmePmkidCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmePmkidCfm *primitive = (CsrWifiSmePmkidCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->getPmkids);
- CsrPmemFree(primitive);
+ kfree(primitive->getPmkids);
+ kfree(primitive);
}
void CsrWifiSmeScanConfigGetCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeScanConfigGetCfm *primitive = (CsrWifiSmeScanConfigGetCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->scanConfig.passiveChannelList);
- CsrPmemFree(primitive);
+ kfree(primitive->scanConfig.passiveChannelList);
+ kfree(primitive);
}
void CsrWifiSmeScanResultIndSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeScanResultInd *primitive = (CsrWifiSmeScanResultInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->result.informationElements);
+ kfree(primitive->result.informationElements);
switch (primitive->result.p2pDeviceRole)
{
case CSR_WIFI_SME_P2P_ROLE_GO:
u16 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;
case CSR_WIFI_SME_P2P_ROLE_STANDALONE:
- CsrPmemFree(primitive->result.deviceInfo.standalonedevInfo.secDeviceType);
+ kfree(primitive->result.deviceInfo.standalonedevInfo.secDeviceType);
break;
default:
break;
}
- CsrPmemFree(primitive);
+ kfree(primitive);
}
u16 i1;
for (i1 = 0; i1 < primitive->scanResultsCount; i1++)
{
- CsrPmemFree(primitive->scanResults[i1].informationElements);
+ kfree(primitive->scanResults[i1].informationElements);
switch (primitive->scanResults[i1].p2pDeviceRole)
{
case CSR_WIFI_SME_P2P_ROLE_GO:
u16 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;
case CSR_WIFI_SME_P2P_ROLE_STANDALONE:
- CsrPmemFree(primitive->scanResults[i1].deviceInfo.standalonedevInfo.secDeviceType);
+ kfree(primitive->scanResults[i1].deviceInfo.standalonedevInfo.secDeviceType);
break;
default:
break;
}
}
}
- CsrPmemFree(primitive->scanResults);
- CsrPmemFree(primitive);
+ kfree(primitive->scanResults);
+ kfree(primitive);
}
void CsrWifiSmeTspecIndSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeTspecInd *primitive = (CsrWifiSmeTspecInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->tspec);
- CsrPmemFree(primitive);
+ kfree(primitive->tspec);
+ kfree(primitive);
}
void CsrWifiSmeTspecCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeTspecCfm *primitive = (CsrWifiSmeTspecCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->tspec);
- CsrPmemFree(primitive);
+ kfree(primitive->tspec);
+ kfree(primitive);
}
void CsrWifiSmeVersionsGetCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeVersionsGetCfm *primitive = (CsrWifiSmeVersionsGetCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->versions.routerBuild);
- CsrPmemFree(primitive->versions.smeBuild);
- CsrPmemFree(primitive);
+ kfree(primitive->versions.routerBuild);
+ kfree(primitive->versions.smeBuild);
+ kfree(primitive);
}
void CsrWifiSmeCloakedSsidsGetCfmSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeCloakedSsidsGetCfm *primitive = (CsrWifiSmeCloakedSsidsGetCfm *) voidPrimitivePointer;
- CsrPmemFree(primitive->cloakedSsids.cloakedSsids);
- CsrPmemFree(primitive);
+ kfree(primitive->cloakedSsids.cloakedSsids);
+ kfree(primitive);
}
void CsrWifiSmeErrorIndSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeErrorInd *primitive = (CsrWifiSmeErrorInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->errorMessage);
- CsrPmemFree(primitive);
+ kfree(primitive->errorMessage);
+ kfree(primitive);
}
void CsrWifiSmeInfoIndSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeInfoInd *primitive = (CsrWifiSmeInfoInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->infoMessage);
- CsrPmemFree(primitive);
+ kfree(primitive->infoMessage);
+ kfree(primitive);
}
void CsrWifiSmeCoreDumpIndSerFree(void *voidPrimitivePointer)
{
CsrWifiSmeCoreDumpInd *primitive = (CsrWifiSmeCoreDumpInd *) voidPrimitivePointer;
- CsrPmemFree(primitive->data);
- CsrPmemFree(primitive);
+ kfree(primitive->data);
+ kfree(primitive);
}
if (pcli->snap_filter.count) {
pcli->snap_filter.count = 0;
- CsrPmemFree(pcli->snap_filter.protocols);
+ kfree(pcli->snap_filter.protocols);
}
if (snap_filter.count == 0) {
(void*)snap_filter.protocols,
snap_filter.count * sizeof(u16)))
{
- CsrPmemFree(pcli->snap_filter.protocols);
+ kfree(pcli->snap_filter.protocols);
r = -EFAULT;
goto out;
}
if (logptr == NULL) {
unifi_error(priv, "Failed to allocate %d bytes for an SME message\n",
sizeof(udi_log_t) + length);
- CsrPmemFree(buffer);
+ kfree(buffer);
return -ENOMEM;
}
down(&udi_mutex);
if (priv->sme_cli == NULL) {
kfree(logptr);
- CsrPmemFree(buffer);
+ kfree(buffer);
up(&udi_mutex);
unifi_info(priv, "Message for the SME dropped, SME has gone away\n");
return 0;
up(&udi_mutex);
/* It is our responsibility to free the buffer allocated in build_packed_*() */
- CsrPmemFree(buffer);
+ kfree(buffer);
func_exit();
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)) {
unifi_error(priv, "unifi_putest_dl_fw_buff: Failed to get the buffer\n");
- CsrPmemFree(fw_buf);
+ kfree(fw_buf);
return -EFAULT;
}
free_fw:
/* Finished with the putest f/w, so restore the station f/w */
priv->fw_sta = temp_fw_sta;
- CsrPmemFree(fw_buf);
+ kfree(fw_buf);
return CsrHipResultToStatus(csrResult);
}
scan_result, i+1);
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 = NULL;
return r;
* and invalidate the reply_scan_results to avoid re-using
* 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 = NULL;
/* Free any TCLASs previously allocated */
if (priv->packet_filters.tclas_ies_length) {
priv->packet_filters.tclas_ies_length = 0;
- CsrPmemFree(priv->filter_tclas_ies);
+ kfree(priv->filter_tclas_ies);
priv->filter_tclas_ies = NULL;
}
/* If allocation fails, free allocated memory. */
if (ul_clients[id].reply_bulkdata[ref] == NULL) {
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");
return NULL;
}
unifi_trace(priv, UDBG5, "UDI (0x%x) deregistered.\n", ul_client);
/* 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 ++) {
- CsrPmemFree(ul_client->reply_bulkdata[ref]);
+ kfree(ul_client->reply_bulkdata[ref]);
}
if (ul_client->snap_filter.count) {
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 */
}
if (priv->smepriv == NULL) {
- CsrPmemFree(multicast_address_list);
+ kfree(multicast_address_list);
return;
}
mc_count, multicast_address_list);
/* The SME will take a copy of the addreses*/
- CsrPmemFree(multicast_address_list);
+ kfree(multicast_address_list);
}
/* Free any TCLASs previously allocated */
if (priv->packet_filters.tclas_ies_length) {
- CsrPmemFree(priv->filter_tclas_ies);
+ kfree(priv->filter_tclas_ies);
priv->filter_tclas_ies = NULL;
}
rc = copy_from_user(addts_ie, addts_params, addts_ie_length);
if (rc) {
unifi_error(priv, "unifi_cfg_wmm_addts: Failed to get the addts buffer\n");
- CsrPmemFree(addts_ie);
+ kfree(addts_ie);
return -EFAULT;
}
rc = sme_mgt_tspec(priv, CSR_WIFI_SME_LIST_ACTION_ADD, addts_tid,
&tspec, &tclas);
- CsrPmemFree(addts_ie);
+ kfree(addts_ie);
return rc;
}
CsrWifiRouterCtrlWapiUnicastTxEncryptIndSend(priv->CSR_WIFI_SME_IFACEQUEUE, 0, interfaceTag, pktBulkDataLength, pktBulkData);
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();
} else {