2012-06-19 23:15:42 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
|
2012-10-14 12:35:32 +00:00
|
|
|
(c) Cambridge Silicon Radio Limited 2011
|
|
|
|
All rights reserved and confidential information of CSR
|
2012-06-19 23:15:42 +00:00
|
|
|
|
2012-10-14 12:35:32 +00:00
|
|
|
Refer to LICENSE.txt included with this source for details
|
|
|
|
on the license terms.
|
2012-06-19 23:15:42 +00:00
|
|
|
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
/* Note: this is an auto-generated file. */
|
2012-07-20 22:59:12 +00:00
|
|
|
#include <linux/slab.h>
|
2012-06-19 23:15:42 +00:00
|
|
|
#include "csr_wifi_router_prim.h"
|
|
|
|
#include "csr_wifi_router_lib.h"
|
|
|
|
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
|
|
* NAME
|
|
|
|
* CsrWifiRouterFreeUpstreamMessageContents
|
|
|
|
*
|
|
|
|
* DESCRIPTION
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* PARAMETERS
|
|
|
|
* eventClass: only the value CSR_WIFI_ROUTER_PRIM will be handled
|
|
|
|
* message: the message to free
|
|
|
|
*----------------------------------------------------------------------------*/
|
2012-07-20 19:00:10 +00:00
|
|
|
void CsrWifiRouterFreeUpstreamMessageContents(u16 eventClass, void *message)
|
2012-06-19 23:15:42 +00:00
|
|
|
{
|
2012-10-14 12:35:32 +00:00
|
|
|
if (eventClass != CSR_WIFI_ROUTER_PRIM)
|
|
|
|
return;
|
|
|
|
if (NULL == message)
|
|
|
|
return;
|
|
|
|
switch (*((CsrWifiRouterPrim *) message)) {
|
|
|
|
case CSR_WIFI_ROUTER_MA_PACKET_IND:
|
|
|
|
{
|
|
|
|
CsrWifiRouterMaPacketInd *p =
|
|
|
|
(CsrWifiRouterMaPacketInd *) message;
|
|
|
|
kfree(p->frame);
|
|
|
|
p->frame = NULL;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2012-06-19 23:15:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|