summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrunal soni <ksoni@qca.qualcomm.com>2014-07-10 18:56:17 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-07-14 17:43:41 -0700
commit21129d68c473d9a8edbdd81bd4fb3fb71685bbfa (patch)
tree49db2bf209029ba83b9e3aab3ca402c336ff2a16
parent1eb99c631be71f088f0090038dde674efdfafc65 (diff)
qcacld: SAP-PMF: Fix to send the correct retry time in assoc resp
When SAP and STA is connected in PMF session, and if we receive another assoc req for that STA then we should send assoc rsp with try again later status with proper comeback time. with current code, we are not populating the correct comeback time, This patch will fix it. Change-Id: I8223940ecde7bd4ef2ca14c32da80828e71dbdca CRs-Fixed: 684257
-rw-r--r--CORE/MAC/src/pe/lim/limProcessAssocReqFrame.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/CORE/MAC/src/pe/lim/limProcessAssocReqFrame.c b/CORE/MAC/src/pe/lim/limProcessAssocReqFrame.c
index 00560216d8a6..3ddf03b6a53e 100644
--- a/CORE/MAC/src/pe/lim/limProcessAssocReqFrame.c
+++ b/CORE/MAC/src/pe/lim/limProcessAssocReqFrame.c
@@ -890,6 +890,12 @@ limProcessAssocReqFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo,
// start SA Query procedure, respond to Association Request
// with try again later
case DPH_SA_QUERY_NOT_IN_PROGRESS:
+ /*
+ * We should reset the retry counter before we start
+ * the SA query procedure, otherwise in next set of SA query
+ * procedure we will end up using the stale value.
+ */
+ pStaDs->pmfSaQueryRetryCount = 0;
limSendAssocRspMgmtFrame(pMac, eSIR_MAC_TRY_AGAIN_LATER, 1,
pHdr->sa, subType, pStaDs, psessionEntry);
limSendSaQueryRequestFrame(
@@ -897,7 +903,6 @@ limProcessAssocReqFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo,
pHdr->sa, psessionEntry);
pStaDs->pmfSaQueryStartTransId = pStaDs->pmfSaQueryCurrentTransId;
pStaDs->pmfSaQueryCurrentTransId++;
- pStaDs->pmfSaQueryRetryCount = 0;
// start timer for SA Query retry
if (tx_timer_activate(&pStaDs->pmfSaQueryTimer) != TX_SUCCESS)