summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrishna Kumaar Natarajan <kknatara@qca.qualcomm.com>2015-09-04 17:16:42 -0700
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2015-09-09 15:11:02 +0530
commitcf02f26f4dbb76fe425edbf4407c5cd4892da9af (patch)
treee02f91b0a6fc3c967bfbb581ca5b34464f159ae0
parent043404d80409b3a5f20b232c4f17dfa49493d6e8 (diff)
qcacld-2.0: Fix SAP to not send Assoc Rsp for duplicate Assoc Req
Fix soft AP to not send Assoc response for Assoc req which is unprotected and initiated by an injector rather than a testbed station. If STAUT sends duplicate Assoc request, Assoc response should be sent only in case of non-PMF connection. Change-Id: I6fb4c139af333c937e767cb111df4d1d69bddbd9 CRs-Fixed: 902969
-rw-r--r--CORE/MAC/src/pe/lim/limProcessAssocReqFrame.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/CORE/MAC/src/pe/lim/limProcessAssocReqFrame.c b/CORE/MAC/src/pe/lim/limProcessAssocReqFrame.c
index a5efca7cfe8c..4e7fbe234181 100644
--- a/CORE/MAC/src/pe/lim/limProcessAssocReqFrame.c
+++ b/CORE/MAC/src/pe/lim/limProcessAssocReqFrame.c
@@ -288,8 +288,7 @@ limProcessAssocReqFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo,
if (NULL != pStaDs)
{
- if (pHdr->fc.retry > 0)
- {
+ if (pHdr->fc.retry > 0) {
/* Ignore the Retry */
limLog(pMac, LOGE,
FL("STA is initiating Assoc Req after ACK lost. "
@@ -299,10 +298,10 @@ limProcessAssocReqFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo,
psessionEntry->limSystemRole,
MAC_ADDR_ARRAY(pHdr->sa));
return;
- }
- else
- {
- /* STA might have missed the assoc response,
+ } else if (!pStaDs->rmfEnabled) {
+ /* Do this only for non PMF case.
+ *
+ * STA might have missed the assoc response,
* so it is sending assoc request frame again.
*/
limSendAssocRspMgmtFrame(pMac, eSIR_SUCCESS,