wlan: Decrement pending mgmt packet count properly.
The management packet might not be posted to the LIM,
due to various reasons, in this case the
pMac->sys.gSysBbtPendingMgmtCount is not decremented.
Thus pMac->sys.gSysBbtPendingMgmtCount keeps on increasing and
result into dropping of management packets.
To resolve decrement pMac->sys.gSysBbtPendingMgmtCount if the
packet is not posted to the LIM.
CRs-Fixed: 806697
Change-Id: Ib7b05a489b738393bdc675264c975a7deae45ae4
diff --git a/CORE/MAC/src/pe/lim/limApi.c b/CORE/MAC/src/pe/lim/limApi.c
index 29f6e47..2f52019 100644
--- a/CORE/MAC/src/pe/lim/limApi.c
+++ b/CORE/MAC/src/pe/lim/limApi.c
@@ -1450,6 +1450,11 @@
mHdr->fc.subType ))
{
vos_pkt_return_packet(pVosPkt);
+
+ /* Decrement gSysBbtPendingMgmtCount if packet
+ * is dropped before posting to LIM
+ */
+ limDecrementPendingMgmtCount(pMac);
limLog( pMac, LOGW,
FL ( "sysBbtProcessMessageCore failed to process SIR_BB_XPORT_MGMT_MSG" ));
return VOS_STATUS_E_FAILURE;