Wlan: Ignore BMISS indication in case previous one is not processed

If SME has active cmd, continuous BMiss in BMPS state will
exhaust sme command pool.
To avoid this, Ignore BMiss indication in case previous one is
not processed.

CRs-Fixed: 979109
Change-Id: I87f6d5437f181abb92772ad142b2101547d76657
diff --git a/CORE/MAC/src/pe/lim/limApi.c b/CORE/MAC/src/pe/lim/limApi.c
index c74a66a..99969da 100644
--- a/CORE/MAC/src/pe/lim/limApi.c
+++ b/CORE/MAC/src/pe/lim/limApi.c
@@ -2177,6 +2177,12 @@
          return;
     }
 #endif
+    if (pMac->pmm.inMissedBeaconScenario == TRUE) {
+         limLog(pMac, LOGW,
+               FL("beacon miss handling is already going on for BSSIdx:%d"),
+               pSirMissedBeaconInd->bssIdx);
+         return;
+    }
     if ( (pMac->pmm.gPmmState == ePMM_STATE_BMPS_SLEEP) ||
          (pMac->pmm.gPmmState == ePMM_STATE_UAPSD_SLEEP)||
          (pMac->pmm.gPmmState == ePMM_STATE_WOWLAN) )