Merge "wlan: Disable roaming for SAE" into wlan-driver.lnx.1.0
diff --git a/CORE/MAC/src/pe/lim/limProcessAuthFrame.c b/CORE/MAC/src/pe/lim/limProcessAuthFrame.c
index 58583e0..741a078 100644
--- a/CORE/MAC/src/pe/lim/limProcessAuthFrame.c
+++ b/CORE/MAC/src/pe/lim/limProcessAuthFrame.c
@@ -726,13 +726,22 @@
)
{
limLog(pMac, LOGE,
- FL("STA is already connected but received auth frame"
- "Send the Deauth and lim Delete Station Context"
- "(staId: %d, assocId: %d) "),
+ FL("Auth frame received in mlm state: %d(staId: %d, assocId: %d)"),
+ pStaDs->mlmStaContext.mlmState,
pStaDs->staIndex, assocId);
- limSendDeauthMgmtFrame(pMac, eSIR_MAC_UNSPEC_FAILURE_REASON,
- (tANI_U8 *) pHdr->sa, psessionEntry, FALSE);
- limTriggerSTAdeletion(pMac, pStaDs, psessionEntry);
+ if (pStaDs->mlmStaContext.mlmState ==
+ eLIM_MLM_LINK_ESTABLISHED_STATE) {
+ limLog(pMac, LOGE,
+ FL("STA is already connected but received auth frame"
+ "Send the Deauth and lim Delete Station Context"
+ "(staId: %d, assocId: %d) "),
+ pStaDs->staIndex, assocId);
+ limSendDeauthMgmtFrame(pMac,
+ eSIR_MAC_UNSPEC_FAILURE_REASON,
+ (tANI_U8 *) pHdr->sa,
+ psessionEntry, FALSE);
+ limTriggerSTAdeletion(pMac, pStaDs, psessionEntry);
+ }
goto free;
}
}