Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 1 | /* |
Kiet Lam | aa8e15a | 2014-02-11 23:30:06 -0800 | [diff] [blame^] | 2 | * Copyright (c) 2012-2013 Qualcomm Atheros, Inc. |
| 3 | * All Rights Reserved. |
| 4 | * Qualcomm Atheros Confidential and Proprietary. |
Gopichand Nakkala | 92f07d8 | 2013-01-08 21:16:34 -0800 | [diff] [blame] | 5 | */ |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 6 | /**========================================================================= |
| 7 | |
| 8 | \file macTrace.h |
| 9 | |
| 10 | \brief definition for trace related APIs |
| 11 | |
| 12 | \author Sunit Bhatia |
| 13 | |
| 14 | Copyright 2008 (c) Qualcomm, Incorporated. All Rights Reserved. |
| 15 | |
| 16 | Qualcomm Confidential and Proprietary. |
| 17 | |
| 18 | ========================================================================*/ |
| 19 | |
| 20 | |
| 21 | |
| 22 | #ifndef __MAC_TRACE_H |
| 23 | #define __MAC_TRACE_H |
| 24 | |
| 25 | #include "aniGlobal.h" |
| 26 | |
| 27 | |
| 28 | #ifdef TRACE_RECORD |
| 29 | |
| 30 | #define CASE_RETURN_STRING( str ) \ |
| 31 | case ( ( str ) ): return( (tANI_U8*)(#str) ); break \ |
| 32 | |
| 33 | #define MAC_TRACE_GET_MODULE_ID(data) ((data >> 8) & 0xff) |
| 34 | #define MAC_TRACE_GET_MSG_ID(data) (data & 0xffff) |
| 35 | |
| 36 | |
Leela Venkata Kiran Kumar Reddy Chirala | f3fe630 | 2013-03-18 12:32:14 -0700 | [diff] [blame] | 37 | #define eLOG_NODROP_MISSED_BEACON_SCENARIO 0 |
Venkata Prathyusha Kuntupalli | e567529 | 2013-04-11 17:01:17 -0700 | [diff] [blame] | 38 | #define eLOG_PROC_DEAUTH_FRAME_SCENARIO 1 |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 39 | |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 40 | void macTraceReset(tpAniSirGlobal pMac); |
| 41 | void macTrace(tpAniSirGlobal pMac, tANI_U8 code, tANI_U8 session, tANI_U32 data); |
| 42 | 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] | 43 | tANI_U8* macTraceGetCfgMsgString( tANI_U16 cfgMsg ); |
| 44 | tANI_U8* macTraceGetLimMsgString( tANI_U16 limMsg ); |
Leela V Kiran Kumar Reddy Chirala | c3b9d38 | 2013-01-31 20:49:53 -0800 | [diff] [blame] | 45 | tANI_U8* macTraceGetWdaMsgString( tANI_U16 wdaMsg ); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 46 | tANI_U8* macTraceGetSmeMsgString( tANI_U16 smeMsg ); |
| 47 | tANI_U8* macTraceGetModuleString( tANI_U8 moduleId); |
Leela Venkata Kiran Kumar Reddy Chirala | f3fe630 | 2013-03-18 12:32:14 -0700 | [diff] [blame] | 48 | tANI_U8* macTraceGetInfoLogString( tANI_U16 infoLog ); |
Leela V Kiran Kumar Reddy Chirala | c3b9d38 | 2013-01-31 20:49:53 -0800 | [diff] [blame] | 49 | eHalStatus pe_AcquireGlobalLock( tAniSirLim *psPe); |
| 50 | eHalStatus pe_ReleaseGlobalLock( tAniSirLim *psPe); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 51 | |
Madan Mohan Koyyalamudi | 8af9b40 | 2013-07-11 14:59:10 +0530 | [diff] [blame] | 52 | tANI_U8* macTraceGetHDDWlanConnState(tANI_U16 connState); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 53 | |
Madan Mohan Koyyalamudi | 8af9b40 | 2013-07-11 14:59:10 +0530 | [diff] [blame] | 54 | #ifdef WLAN_FEATURE_P2P_DEBUG |
| 55 | tANI_U8* macTraceGetP2PConnState(tANI_U16 connState); |
| 56 | #endif |
| 57 | |
| 58 | tANI_U8* macTraceGetNeighbourRoamState(tANI_U16 neighbourRoamState); |
| 59 | tANI_U8* macTraceGetcsrRoamState(tANI_U16 csrRoamState); |
| 60 | tANI_U8* macTraceGetcsrRoamSubState(tANI_U16 csrRoamSubState); |
| 61 | tANI_U8* macTraceGetLimSmeState(tANI_U16 limState); |
| 62 | tANI_U8* macTraceGetLimMlmState(tANI_U16 mlmState); |
| 63 | tANI_U8* macTraceGetTLState(tANI_U16 tlState); |
Jeff Johnson | 295189b | 2012-06-20 16:38:30 -0700 | [diff] [blame] | 64 | |
| 65 | #endif |
| 66 | |
| 67 | #endif |
| 68 | |