prima: Honour diassoc frame in add sta rsp state

Currently the driver does not honour the disassoc frame
if the mlm state is in add sta response state, i.e it has
processed the assoc response, and now the wait is to
process the add sta request sent to FW, after which the state
would be changed to link established state.

Fix is to honour the diassoc frame, and inform the supplicant
about the disconnection with the current AP.

Change-Id: I67b0c4d9f82f0884612181cbecd8fed134f7009d
CRs-Fixed: 2430981
diff --git a/CORE/MAC/src/pe/lim/limProcessDisassocFrame.c b/CORE/MAC/src/pe/lim/limProcessDisassocFrame.c
index 805ad5f..88ca7f8 100644
--- a/CORE/MAC/src/pe/lim/limProcessDisassocFrame.c
+++ b/CORE/MAC/src/pe/lim/limProcessDisassocFrame.c
@@ -203,6 +203,14 @@
         }
     }
 
+    if ((psessionEntry->limSystemRole == eLIM_STA_ROLE) &&
+         psessionEntry->limMlmState == eLIM_MLM_WT_ADD_STA_RSP_STATE) {
+        PELOGE(limLog(pMac, LOGE, FL("received Disassoc from the AP in"
+                      "add sta response state, disconnecting"));)
+        psessionEntry->fDeauthReceived = true;
+        return;
+      }
+
     if ( (psessionEntry->limSystemRole == eLIM_AP_ROLE) ||
          (psessionEntry->limSystemRole == eLIM_BT_AMP_AP_ROLE) )
     {