wlan: Stop timers in unload path if SSR triggered

Currently if device is in unload process and SSR is triggered,
the SSR state is not set as unload would eventually restart
the sub-system. Due to this, adapter in unload process would
try to access the sub-system when it is in bad state. Changes
are made to stop the SME active cmd list timers when unload
in progress and if SSR is triggered.

Change-Id: Ibf8a6af4a9b21c0dbd9af17653ebcd038c78dca3
CRs-Fixed: 842927
diff --git a/CORE/SME/src/sme_common/sme_Api.c b/CORE/SME/src/sme_common/sme_Api.c
index 0960223..1b3c8d8 100644
--- a/CORE/SME/src/sme_common/sme_Api.c
+++ b/CORE/SME/src/sme_common/sme_Api.c
@@ -2765,6 +2765,17 @@
 
    return status;
 }
+
+v_VOID_t sme_PreClose(tHalHandle hHal)
+{
+   tpAniSirGlobal pMac = PMAC_STRUCT( hHal );
+
+   smsLog(pMac, LOG1, FL("Stopping Active CMD List Timer"));
+
+   vos_timer_stop( pMac->sme.smeCmdActiveList.cmdTimeoutTimer );
+
+}
+
 #ifdef FEATURE_WLAN_LFR
 tANI_BOOLEAN csrIsScanAllowed(tpAniSirGlobal pMac)
 {