Commit | Line | Data |
---|---|---|
635d2b00 GKH |
1 | /***************************************************************************** |
2 | ||
936a8b4c SY |
3 | (c) Cambridge Silicon Radio Limited 2011 |
4 | All rights reserved and confidential information of CSR | |
635d2b00 | 5 | |
936a8b4c SY |
6 | Refer to LICENSE.txt included with this source for details |
7 | on the license terms. | |
635d2b00 GKH |
8 | |
9 | *****************************************************************************/ | |
10 | ||
11 | /* Note: this is an auto-generated file. */ | |
55a27055 | 12 | #include <linux/slab.h> |
635d2b00 GKH |
13 | #include "csr_wifi_router_prim.h" |
14 | #include "csr_wifi_router_lib.h" | |
15 | ||
16 | /*----------------------------------------------------------------------------* | |
17 | * NAME | |
18 | * CsrWifiRouterFreeUpstreamMessageContents | |
19 | * | |
20 | * DESCRIPTION | |
21 | * | |
22 | * | |
23 | * PARAMETERS | |
24 | * eventClass: only the value CSR_WIFI_ROUTER_PRIM will be handled | |
25 | * message: the message to free | |
26 | *----------------------------------------------------------------------------*/ | |
8c87f69a | 27 | void CsrWifiRouterFreeUpstreamMessageContents(u16 eventClass, void *message) |
635d2b00 | 28 | { |
936a8b4c SY |
29 | if (eventClass != CSR_WIFI_ROUTER_PRIM) |
30 | return; | |
31 | if (NULL == message) | |
32 | return; | |
33 | switch (*((CsrWifiRouterPrim *) message)) { | |
34 | case CSR_WIFI_ROUTER_MA_PACKET_IND: | |
35 | { | |
36 | CsrWifiRouterMaPacketInd *p = | |
37 | (CsrWifiRouterMaPacketInd *) message; | |
38 | kfree(p->frame); | |
39 | p->frame = NULL; | |
40 | break; | |
41 | } | |
42 | default: | |
43 | break; | |
44 | } | |
635d2b00 GKH |
45 | } |
46 | ||
47 |