diff options
| author | Krishna Kumaar Natarajan <kknatara@qca.qualcomm.com> | 2015-02-20 13:41:33 -0800 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-02-23 15:07:35 +0530 |
| commit | c259a1378024b75903a25b9988099d75e2bc757b (patch) | |
| tree | 3b71e5bc1b4c1ada3d423613f338712f9445cbca | |
| parent | 4ac0f6f4dab54caccfb31fafe02c3821ff7ca845 (diff) | |
wlan: Minimizing the retry log for Re/Assoc Rsp frame.
This is prima to qcacld-2.0 propagation
Due to some AP; Dut is receiving Re/assoc frame in wrong
state. Log "received Re/Assoc rsp frame is not a retry frame"
prints excessively when some buggy AP keep sending Re/Assoc frame.
Minimizing the logs once in 15 prints.
Change-Id: Ic9d6ed872127b7e87adc887b0afaf8674119420f
CRs-Fixed: 798344
| -rw-r--r-- | CORE/MAC/inc/aniGlobal.h | 1 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limApi.c | 3 | ||||
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c | 13 |
3 files changed, 11 insertions, 6 deletions
diff --git a/CORE/MAC/inc/aniGlobal.h b/CORE/MAC/inc/aniGlobal.h index 20b5de7c630d..996295bf2c25 100644 --- a/CORE/MAC/inc/aniGlobal.h +++ b/CORE/MAC/inc/aniGlobal.h @@ -850,6 +850,7 @@ tLimMlmOemDataRsp *gpLimMlmOemDataRsp; tANI_U8 offload_scan_filter_p2p_result; tANI_U8 probeCounter; tANI_U8 maxProbe; + uint8_t retry_packet_cnt; } tAniSirLim, *tpAniSirLim; typedef struct sLimMgmtFrameRegistration diff --git a/CORE/MAC/src/pe/lim/limApi.c b/CORE/MAC/src/pe/lim/limApi.c index f59f842e4621..d23050f8f2e0 100644 --- a/CORE/MAC/src/pe/lim/limApi.c +++ b/CORE/MAC/src/pe/lim/limApi.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2014 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2015 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -849,6 +849,7 @@ tSirRetStatus peOpen(tpAniSirGlobal pMac, tMacOpenParameters *pMacOpenParam) goto pe_open_lock_fail; } pMac->lim.deauthMsgCnt = 0; + pMac->lim.retry_packet_cnt = 0; /* * peOpen is successful by now, so it is right time to initialize diff --git a/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c b/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c index 6327009ebad5..822d3e43727f 100644 --- a/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c +++ b/CORE/MAC/src/pe/lim/limProcessAssocRspFrame.c @@ -382,11 +382,14 @@ limProcessAssocRspFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo, tANI_U8 sub psessionEntry->limMlmState, psessionEntry->peSessionId);) #endif // Log error - if (!pHdr->fc.retry) - { - limLog(pMac, LOGE, - FL("received Re/Assoc rsp frame is not a retry frame")); - limPrintMlmState(pMac, LOGE, psessionEntry->limMlmState); + if (!pHdr->fc.retry) { + if (!(pMac->lim.retry_packet_cnt & 0xf)) { + limLog(pMac, LOGE, + FL("received Re/Assoc rsp frame is not a retry frame")); + limPrintMlmState(pMac, LOGE, psessionEntry->limMlmState); + } else { + pMac->lim.retry_packet_cnt++; + } } vos_mem_free(pBeaconStruct); return; |
