From cf02f26f4dbb76fe425edbf4407c5cd4892da9af Mon Sep 17 00:00:00 2001 From: Krishna Kumaar Natarajan Date: Fri, 4 Sep 2015 17:16:42 -0700 Subject: 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 --- CORE/MAC/src/pe/lim/limProcessAssocReqFrame.c | 11 +++++------ 1 file 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, -- cgit v1.2.3