diff options
| -rw-r--r-- | CORE/MAC/inc/aniGlobal.h | 2 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessMessageQueue.c | 11 | ||||
| -rw-r--r-- | CORE/SME/inc/sme_Api.h | 2 | ||||
| -rw-r--r-- | CORE/SME/src/sme_common/sme_Api.c | 10 |
4 files changed, 23 insertions, 2 deletions
diff --git a/CORE/MAC/inc/aniGlobal.h b/CORE/MAC/inc/aniGlobal.h index 2f28e7acc800..94bc051920fd 100644 --- a/CORE/MAC/inc/aniGlobal.h +++ b/CORE/MAC/inc/aniGlobal.h @@ -1083,7 +1083,7 @@ typedef struct sAniSirGlobal void *readyToSuspendContext; tANI_U8 lteCoexAntShare; tANI_U8 beacon_offload; - + tANI_U32 fEnableDebugLog; } tAniSirGlobal; typedef enum diff --git a/CORE/MAC/src/pe/lim/limProcessMessageQueue.c b/CORE/MAC/src/pe/lim/limProcessMessageQueue.c index 35d1665f1260..5330438943fc 100644 --- a/CORE/MAC/src/pe/lim/limProcessMessageQueue.c +++ b/CORE/MAC/src/pe/lim/limProcessMessageQueue.c @@ -538,7 +538,16 @@ limHandle80211Frames(tpAniSirGlobal pMac, tpSirMsgQ limMsg, tANI_U8 *pDeferMsg) VOS_TRACE_HEX_DUMP(VOS_MODULE_ID_PE, VOS_TRACE_LEVEL_ERROR, pHdr, WDA_GET_RX_MPDU_HEADER_LEN(pRxPacketInfo)); #endif - + if (pMac->fEnableDebugLog & 0x1) { + if ((fc.type == SIR_MAC_MGMT_FRAME) && + (fc.subType != SIR_MAC_MGMT_PROBE_REQ) && + (fc.subType != SIR_MAC_MGMT_PROBE_RSP) && + (fc.subType != SIR_MAC_MGMT_BEACON)) + { + limLog(pMac, LOGE, FL("RX MGMT - Type %hu, SubType %hu"), + fc.type, fc.subType); + } + } #ifdef WLAN_FEATURE_ROAM_SCAN_OFFLOAD if ( WDA_GET_ROAMCANDIDATEIND(pRxPacketInfo)) { diff --git a/CORE/SME/inc/sme_Api.h b/CORE/SME/inc/sme_Api.h index e605b55a3d1e..7a88c77fb0ed 100644 --- a/CORE/SME/inc/sme_Api.h +++ b/CORE/SME/inc/sme_Api.h @@ -126,6 +126,7 @@ typedef struct _smeConfigParams tANI_U8 isAmsduSupportInAMPDU; tANI_BOOLEAN fP2pListenOffload; tANI_BOOLEAN pnoOffload; + tANI_U8 fEnableDebugLog; } tSmeConfigParams, *tpSmeConfigParams; typedef enum @@ -3404,4 +3405,5 @@ eHalStatus sme_InitThermalInfo( tHalHandle hHal, tSmeThermalParams thermalParam -------------------------------------------------------------------------*/ eHalStatus sme_SetThermalLevel( tHalHandle hHal, tANI_U8 level ); #endif +eHalStatus sme_UpdateConnectDebug(tHalHandle hHal, tANI_U32 set_value); #endif //#if !defined( __SME_API_H ) diff --git a/CORE/SME/src/sme_common/sme_Api.c b/CORE/SME/src/sme_common/sme_Api.c index 93c40bc7fe60..77bf2204b9fb 100644 --- a/CORE/SME/src/sme_common/sme_Api.c +++ b/CORE/SME/src/sme_common/sme_Api.c @@ -1629,6 +1629,8 @@ eHalStatus sme_UpdateConfig(tHalHandle hHal, tpSmeConfigParams pSmeConfigParams) /* update p2p offload status */ pMac->pnoOffload = pSmeConfigParams->pnoOffload; + pMac->fEnableDebugLog = pSmeConfigParams->fEnableDebugLog; + return status; } @@ -11374,3 +11376,11 @@ eHalStatus sme_SetThermalLevel( tHalHandle hHal, tANI_U8 level ) return eHAL_STATUS_FAILURE; } #endif /* #ifndef QCA_WIFI_ISOC */ + +eHalStatus sme_UpdateConnectDebug(tHalHandle hHal, tANI_U32 set_value) +{ + eHalStatus status = eHAL_STATUS_SUCCESS; + tpAniSirGlobal pMac = PMAC_STRUCT(hHal); + pMac->fEnableDebugLog = set_value; + return (status); +} |
