Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Gopichand Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 2 | * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 5 | * |
| 6 | * |
| 7 | * Permission to use, copy, modify, and/or distribute this software for |
| 8 | * any purpose with or without fee is hereby granted, provided that the |
| 9 | * above copyright notice and this permission notice appear in all |
| 10 | * copies. |
| 11 | * |
| 12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 13 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 14 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 15 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 16 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 17 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 18 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 19 | * PERFORMANCE OF THIS SOFTWARE. |
| 20 | */ |
| 21 | /* |
Jeff Johnson | 32d95a3 | 2012-09-10 13:15:23 -0700 | [diff] [blame] | 22 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 23 | * |
| 24 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 25 | * |
| 26 | * |
| 27 | * Permission to use, copy, modify, and/or distribute this software for |
| 28 | * any purpose with or without fee is hereby granted, provided that the |
| 29 | * above copyright notice and this permission notice appear in all |
| 30 | * copies. |
| 31 | * |
| 32 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 33 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 34 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 35 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 36 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 37 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 38 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 39 | * PERFORMANCE OF THIS SOFTWARE. |
| 40 | */ |
| 41 | |
| 42 | /**========================================================================= |
| 43 | |
| 44 | \file macTrace.h |
| 45 | |
| 46 | \brief definition for trace related APIs |
| 47 | |
| 48 | \author Sunit Bhatia |
| 49 | |
| 50 | Copyright 2008 (c) Qualcomm, Incorporated. All Rights Reserved. |
| 51 | |
| 52 | Qualcomm Confidential and Proprietary. |
| 53 | |
| 54 | ========================================================================*/ |
| 55 | |
| 56 | |
| 57 | |
| 58 | #ifndef __MAC_TRACE_H |
| 59 | #define __MAC_TRACE_H |
| 60 | |
| 61 | #include "aniGlobal.h" |
| 62 | |
| 63 | |
| 64 | #ifdef TRACE_RECORD |
| 65 | |
| 66 | #define CASE_RETURN_STRING( str ) \ |
| 67 | case ( ( str ) ): return( (tANI_U8*)(#str) ); break \ |
| 68 | |
| 69 | #define MAC_TRACE_GET_MODULE_ID(data) ((data >> 8) & 0xff) |
| 70 | #define MAC_TRACE_GET_MSG_ID(data) (data & 0xffff) |
| 71 | |
| 72 | |
Leela Venkata Kiran Kumar Reddy Chirala | f3fe630 | 2013-03-18 12:32:14 -0700 | [diff] [blame] | 73 | #define eLOG_NODROP_MISSED_BEACON_SCENARIO 0 |
Venkata Prathyusha Kuntupalli | e567529 | 2013-04-11 17:01:17 -0700 | [diff] [blame] | 74 | #define eLOG_PROC_DEAUTH_FRAME_SCENARIO 1 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 75 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 76 | void macTraceReset(tpAniSirGlobal pMac); |
| 77 | void macTrace(tpAniSirGlobal pMac, tANI_U8 code, tANI_U8 session, tANI_U32 data); |
| 78 | void macTraceNew(tpAniSirGlobal pMac, tANI_U8 module, tANI_U8 code, tANI_U8 session, tANI_U32 data); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 79 | tANI_U8* macTraceGetCfgMsgString( tANI_U16 cfgMsg ); |
| 80 | tANI_U8* macTraceGetLimMsgString( tANI_U16 limMsg ); |
Leela V Kiran Kumar Reddy Chirala | c3b9d38 | 2013-01-31 20:49:53 -0800 | [diff] [blame] | 81 | tANI_U8* macTraceGetWdaMsgString( tANI_U16 wdaMsg ); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 82 | tANI_U8* macTraceGetSmeMsgString( tANI_U16 smeMsg ); |
| 83 | tANI_U8* macTraceGetModuleString( tANI_U8 moduleId); |
Leela Venkata Kiran Kumar Reddy Chirala | f3fe630 | 2013-03-18 12:32:14 -0700 | [diff] [blame] | 84 | tANI_U8* macTraceGetInfoLogString( tANI_U16 infoLog ); |
Leela V Kiran Kumar Reddy Chirala | c3b9d38 | 2013-01-31 20:49:53 -0800 | [diff] [blame] | 85 | eHalStatus pe_AcquireGlobalLock( tAniSirLim *psPe); |
| 86 | eHalStatus pe_ReleaseGlobalLock( tAniSirLim *psPe); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 87 | |
Madan Mohan Koyyalamudi | 8af9b40 | 2013-07-11 14:59:10 +0530 | [diff] [blame] | 88 | tANI_U8* macTraceGetHDDWlanConnState(tANI_U16 connState); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 89 | |
Madan Mohan Koyyalamudi | 8af9b40 | 2013-07-11 14:59:10 +0530 | [diff] [blame] | 90 | #ifdef WLAN_FEATURE_P2P_DEBUG |
| 91 | tANI_U8* macTraceGetP2PConnState(tANI_U16 connState); |
| 92 | #endif |
| 93 | |
| 94 | tANI_U8* macTraceGetNeighbourRoamState(tANI_U16 neighbourRoamState); |
| 95 | tANI_U8* macTraceGetcsrRoamState(tANI_U16 csrRoamState); |
| 96 | tANI_U8* macTraceGetcsrRoamSubState(tANI_U16 csrRoamSubState); |
| 97 | tANI_U8* macTraceGetLimSmeState(tANI_U16 limState); |
| 98 | tANI_U8* macTraceGetLimMlmState(tANI_U16 mlmState); |
| 99 | tANI_U8* macTraceGetTLState(tANI_U16 tlState); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 100 | |
| 101 | #endif |
| 102 | |
| 103 | #endif |
| 104 | |