Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f07ad18d authored by Abhinav Kumar's avatar Abhinav Kumar
Browse files

wlan: Protect sme_RrmIssueScanReq with sme lock

Protect sme_RrmIssueScanReq with sme lock In rrmIterMeasTimerHandle
to avoid race condition while processing multiple rrm scan request.

Change-Id: I48565b646ad3ce4f02d4c47853d45ca36c14e2f1
CRs-Fixed: 2690856
parent 4561815f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1311,11 +1311,17 @@ eHalStatus sme_RrmMsgProcessor( tpAniSirGlobal pMac, v_U16_t msg_type,
void rrmIterMeasTimerHandle( v_PVOID_t userData )
{
   tpAniSirGlobal pMac = (tpAniSirGlobal) userData;
   eHalStatus status = eHAL_STATUS_FAILURE;

#if defined WLAN_VOWIFI_DEBUG
   smsLog( pMac, LOGE, "Randomization timer expired...send on next channel ");
#endif
    //Issue a scan req for next channel.
    status = sme_AcquireGlobalLock(&pMac->sme);
    if (HAL_STATUS_SUCCESS(status)) {
        sme_RrmIssueScanReq(pMac);
        sme_ReleaseGlobalLock(&pMac->sme);
    }
}

/* ---------------------------------------------------------------------------