wlan: While unload do not flush disconnect and full power commands

If disconnect is queued in sme pending queue and unload is
triggered, driver flush all the commands in pending queue including
disconnect. Thus del self STA is sent without DEL BSS leading to
crash in firmware.

To avoid this remove this flush logic from hdd and flush commands
in csr close session. Also do not flush the disconnect and full
power commands if called from unload.

Change-Id: Ifefbbcd968876708d7a2ca6ba54ed419f6f36d59
CRs-Fixed: 1008093
diff --git a/CORE/SME/src/csr/csrInsideApi.h b/CORE/SME/src/csr/csrInsideApi.h
index eb3278b..8d76845 100644
--- a/CORE/SME/src/csr/csrInsideApi.h
+++ b/CORE/SME/src/csr/csrInsideApi.h
@@ -419,7 +419,8 @@
                                 tANI_BOOLEAN fSync, tANI_U8 bPurgeList,
                                 csrRoamSessionCloseCallback callback,
                                 void *pContext );
-void csrPurgeSmeCmdList(tpAniSirGlobal pMac, tANI_U32 sessionId);
+void csrPurgeSmeCmdList(tpAniSirGlobal pMac, tANI_U32 sessionId,
+                        bool flush_all);
 void csrCleanupSession(tpAniSirGlobal pMac, tANI_U32 sessionId);
 eHalStatus csrRoamGetSessionIdFromBSSID( tpAniSirGlobal pMac, tCsrBssid *bssid, tANI_U32 *pSessionId );
 eCsrCfgDot11Mode csrFindBestPhyMode( tpAniSirGlobal pMac, tANI_U32 phyMode );