wlan: Handling different connect states in virtual interface removal

If driver deletes the self interace before cleaning up the
connection it leaves the FW in invalid state after which
scan get stuck with failure response from the FW.

Handling the disconnecting and connecting state when stop
adatper is called.

Change-Id: I0db2b1cb24e599a0e0d4cbe7a330150754e8886e
CRs-Fixed: 620352
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 7737547..c3fff70 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -6583,7 +6583,7 @@
     }
 
     pHddCtx->isAmpAllowed = VOS_TRUE;
-    pHddStaCtx->conn_info.connState = eConnectionState_NotConnected;
+    pHddStaCtx->conn_info.connState = eConnectionState_Disconnecting;
     INIT_COMPLETION(pAdapter->disconnect_comp_var);
 
     /*issue disconnect*/
@@ -6690,7 +6690,6 @@
                     reasonCode = eCSR_DISCONNECT_REASON_UNSPECIFIED;
                     break;
             }
-            pHddStaCtx->conn_info.connState = eConnectionState_NotConnected;
             pScanInfo =  &pHddCtx->scan_info;
             if (pScanInfo->mScanPending)
             {