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