wlan: Update Auth failure timer value
Update Auth failure timer value according to noa vaule from beacon/probe
resp during pre-assoc phase
Change-Id: Id68d30c9b08d71f65d9bb8ff38156303aa69a421
CR-Fixed: 425994
diff --git a/CORE/MAC/src/pe/lim/limProcessAuthFrame.c b/CORE/MAC/src/pe/lim/limProcessAuthFrame.c
index ad93b3a..a6a0230 100644
--- a/CORE/MAC/src/pe/lim/limProcessAuthFrame.c
+++ b/CORE/MAC/src/pe/lim/limProcessAuthFrame.c
@@ -194,7 +194,14 @@
//PELOG3(sirDumpBuf(pMac, SIR_LIM_MODULE_ID, LOG3, (tANI_U8*)pBd, ((tpHalBufDesc) pBd)->mpduDataOffset + frameLen);)
-
+#ifdef WLAN_FEATURE_P2P
+ //Restore default failure timeout
+ if (VOS_P2P_CLIENT_MODE == psessionEntry->pePersona && psessionEntry->defaultAuthFailureTimeout)
+ {
+ ccmCfgSetInt(pMac,WNI_CFG_AUTHENTICATE_FAILURE_TIMEOUT ,
+ psessionEntry->defaultAuthFailureTimeout, NULL, eANI_BOOLEAN_FALSE);
+ }
+#endif
/// Determine if WEP bit is set in the FC or received MAC header
if (pHdr->fc.wep)