1 /*****************************************************************************
3 (c) Cambridge Silicon Radio Limited 2012
4 All rights reserved and confidential information of CSR
6 Refer to LICENSE.txt included with this source for details
9 *****************************************************************************/
11 /* Note: this is an auto-generated file. */
14 #include "csr_wifi_nme_ap_prim.h"
15 #include "csr_wifi_nme_ap_lib.h"
17 /*----------------------------------------------------------------------------*
19 * CsrWifiNmeApFreeDownstreamMessageContents
25 * eventClass: only the value CSR_WIFI_NME_AP_PRIM will be handled
26 * message: the message to free
27 *----------------------------------------------------------------------------*/
28 void CsrWifiNmeApFreeDownstreamMessageContents(CsrUint16 eventClass, void *message)
30 if (eventClass != CSR_WIFI_NME_AP_PRIM)
39 switch (*((CsrWifiNmeApPrim *) message))
41 case CSR_WIFI_NME_AP_CONFIG_SET_REQ:
43 CsrWifiNmeApConfigSetReq *p = (CsrWifiNmeApConfigSetReq *)message;
44 CsrPmemFree(p->apMacConfig.macAddressList);
45 p->apMacConfig.macAddressList = NULL;
48 case CSR_WIFI_NME_AP_START_REQ:
50 CsrWifiNmeApStartReq *p = (CsrWifiNmeApStartReq *)message;
51 switch (p->apCredentials.authType)
53 case CSR_WIFI_SME_AP_AUTH_TYPE_PERSONAL:
54 switch (p->apCredentials.nmeAuthType.authTypePersonal.pskOrPassphrase)
56 case CSR_WIFI_NME_AP_CREDENTIAL_TYPE_PASSPHRASE:
57 CsrPmemFree(p->apCredentials.nmeAuthType.authTypePersonal.authPers_credentials.passphrase.passphrase);
58 p->apCredentials.nmeAuthType.authTypePersonal.authPers_credentials.passphrase.passphrase = NULL;
69 for (i3 = 0; i3 < p->p2pGoParam.operatingChanList.channelEntryListCount; i3++)
71 CsrPmemFree(p->p2pGoParam.operatingChanList.channelEntryList[i3].operatingChannel);
72 p->p2pGoParam.operatingChanList.channelEntryList[i3].operatingChannel = NULL;
75 CsrPmemFree(p->p2pGoParam.operatingChanList.channelEntryList);
76 p->p2pGoParam.operatingChanList.channelEntryList = NULL;