qcacld-2.0: Send ESE becaon report if request is valid

prima to qcacld-2.0 propagation

Currently if connection is ESE and RRM beacon request is received,
eseProcessBeaconReportXmit is invoked as part of sending report which
results in error as there is no ese request. Add a check to invoke
eseProcessBeaconReportXmit only if measurement request is valid.

Change-Id: I3fe6101b888c70670a371a1eb45b47d756511b1d
CRs-Fixed: 1002305
This commit is contained in:
Padma, Santhosh Kumar 2016-05-10 20:47:00 +05:30 committed by syphyr
parent b410c951a4
commit 2841d21310

View file

@ -5236,6 +5236,7 @@ void __limProcessReportMessage(tpAniSirGlobal pMac, tpSirMsgQ pMsg)
tpSirBeaconReportXmitInd pBcnReport=NULL; tpSirBeaconReportXmitInd pBcnReport=NULL;
tpPESession psessionEntry=NULL; tpPESession psessionEntry=NULL;
tANI_U8 sessionId; tANI_U8 sessionId;
tpEsePEContext pEseContext = NULL;
if(pMsg->bodyptr == NULL) if(pMsg->bodyptr == NULL)
{ {
@ -5248,7 +5249,10 @@ void __limProcessReportMessage(tpAniSirGlobal pMac, tpSirMsgQ pMsg)
limLog(pMac, LOGE, "Session Does not exist for given bssId"); limLog(pMac, LOGE, "Session Does not exist for given bssId");
return; return;
} }
if (psessionEntry->isESEconnection)
pEseContext = &psessionEntry->eseContext;
if (psessionEntry->isESEconnection && pEseContext->curMeasReq.isValid)
eseProcessBeaconReportXmit( pMac, pMsg->bodyptr); eseProcessBeaconReportXmit( pMac, pMsg->bodyptr);
else else
#endif #endif