wlan : Check for ROC context based on frame type and wait duration.
In current code , when lim.gpLimRemainOnChanReq is
NULL, we simply return; but this created failure
in connection when GO is present.As a part of fix
added condition check such that "return" is only
called when GO is not present.
Change-Id: Icebb3247b565a069aaa7a3c78672d9e7fcc963d5
CRs-Fixed: 654167
diff --git a/CORE/MAC/src/pe/lim/limP2P.c b/CORE/MAC/src/pe/lim/limP2P.c
index db47fdc..f3384b1 100644
--- a/CORE/MAC/src/pe/lim/limP2P.c
+++ b/CORE/MAC/src/pe/lim/limP2P.c
@@ -1089,13 +1089,17 @@
limSetHtCaps( pMac, psessionEntry, (tANI_U8*)pMbMsg->data + PROBE_RSP_IE_OFFSET,
nBytes - PROBE_RSP_IE_OFFSET);
}
- if(pMac->lim.gpLimRemainOnChanReq == NULL)
+ if ((SIR_MAC_MGMT_ACTION == pFc->subType) &&
+ (0 != pMbMsg->wait))
{
- limLog( pMac, LOGE,
- FL("Failed to Send Action frame \n"));
- limSendSmeRsp(pMac, eWNI_SME_ACTION_FRAME_SEND_CNF,
- eHAL_STATUS_FAILURE, pMbMsg->sessionId, 0);
- return;
+ if (pMac->lim.gpLimRemainOnChanReq == NULL)
+ {
+ limLog( pMac, LOGE,
+ FL("Failed to Send Action frame \n"));
+ limSendSmeRsp(pMac, eWNI_SME_ACTION_FRAME_SEND_CNF,
+ eHAL_STATUS_FAILURE, pMbMsg->sessionId, 0);
+ return;
+ }
}
}