tSirRetStatus sysInitGlobals(tpAniSirGlobal pMac) { palZeroMemory(pMac->hHdd, (tANI_U8 *) &pMac->sys, sizeof(pMac->sys)); #if defined(ANI_DEBUG) //FIXME : right now we want the reset to happen even in diag debug build. // later on we need to set this to true. //pMac->sys.debugOnReset = true; pMac->sys.debugOnReset = false; #else pMac->sys.debugOnReset = false; #endif pMac->sys.gSysEnableScanMode = 1; pMac->sys.gSysEnableLinkMonitorMode = 0; pMac->sys.fTestRadar = false; pMac->sys.radarDetected = false; pMac->sys.gSysdropLimPkts = false; #ifdef FEATURE_WLAN_NON_INTEGRATED_SOC if(eHAL_STATUS_SUCCESS != halGlobalInit(pMac)) return eSIR_FAILURE; #endif schInitGlobals(pMac); return eSIR_SUCCESS; }
tSirRetStatus sysInitGlobals(tpAniSirGlobal pMac) { vos_mem_set((tANI_U8 *) &pMac->sys, sizeof(pMac->sys), 0); pMac->sys.gSysEnableScanMode = 1; pMac->sys.gSysEnableLinkMonitorMode = 0; schInitGlobals(pMac); return eSIR_SUCCESS; }