wlan: Indicate disconnect to SME to abort pre-auth

If connect is received when SME is already connected, HDD try to
disconnect the current connection and post disconnect to SME.
If preauth is in progress the disconnect may get timeout and
once again new connect is received which removes disconnect cmd
from SME queue and tries to connect to new AP. This causes
firmware to crash as BSS is already present for the session.

To fix this indicate disconnect to SME so that preauth is
aborted as soon as possible.

Change-Id: I6c3ed5344950cb5acfe9df82acaeb77f605e1d28
CRs-Fixed: 2019891
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index ae84374..119ad01 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -15398,6 +15398,11 @@
       (eConnectionState_Connecting == pHddStaCtx->conn_info.connState) ||
       (eConnectionState_IbssConnected == pHddStaCtx->conn_info.connState))
     {
+        /* Indicate disconnect to SME so that in-progress connection or preauth
+         * can be aborted
+         */
+        sme_abortConnection(WLAN_HDD_GET_HAL_CTX(pAdapter),
+                            pAdapter->sessionId);
         spin_lock_bh(&pAdapter->lock_for_active_session);
         if (eConnectionState_Associated ==  pHddStaCtx->conn_info.connState)
         {