wlan: Fix for WLAN driver hang, because of stuck in WDI.

1) Added the changes in LIM to set the link state to IDLE, in error
conditions.
2) If WDI receives a DEL_BSS when there no session for this BSSID in
it's BSS table, still allowing that request to go to HAL as HAL needs to
cleanup its BSS table.
3) With the above changes we should not hit the issue of "Association is
already in place for this BSSID" in WDI, If we still hit this error
condition added the code to reload the driver to recover from this error
condition.

Change-Id: I88cb56beb233464c3067d9f7bbb8bfcc05d41022
CR-Fixed: 411227
diff --git a/CORE/MAC/src/pe/lim/limProcessMlmRspMessages.c b/CORE/MAC/src/pe/lim/limProcessMlmRspMessages.c
index f67cc30..47c2bed 100644
--- a/CORE/MAC/src/pe/lim/limProcessMlmRspMessages.c
+++ b/CORE/MAC/src/pe/lim/limProcessMlmRspMessages.c
@@ -612,6 +612,9 @@
                 MTRACE(macTrace(pMac, TRACE_CODE_SME_STATE, psessionEntry->peSessionId, psessionEntry->limSmeState));
                 psessionEntry->limMlmState = eLIM_MLM_IDLE_STATE;
                 MTRACE(macTrace(pMac, TRACE_CODE_MLM_STATE, psessionEntry->peSessionId, psessionEntry->limMlmState));
+                if(limSetLinkState(pMac, eSIR_LINK_IDLE_STATE,psessionEntry->bssId,
+                    psessionEntry->selfMacAddr, NULL, NULL) != eSIR_SUCCESS)
+                   PELOGE(limLog(pMac, LOGE,  FL("Failed to set the LinkState.\n"));)
 
 #if defined(ANI_AP_CLIENT_SDK)
                 if (psessionEntry->limSystemRole == eLIM_STA_ROLE)