tSirRetStatus macClose(tHalHandle hHal) { tpAniSirGlobal pMac = (tpAniSirGlobal) hHal; uint8_t i =0; if (!pMac) return eHAL_STATUS_FAILURE; peClose(pMac); pMac->psOffloadEnabled = FALSE; /* Call routine to free-up all CFG data structures */ cfgDeInit(pMac); logDeinit(pMac); /* Free the DumpTableEntry */ for(i=0; i<MAX_DUMP_TABLE_ENTRY; i++) { vos_mem_free(pMac->dumpTableEntry[i]); } // Finally, de-allocate the global MAC datastructure: vos_mem_free( pMac ); return eSIR_SUCCESS; }
tSirRetStatus macClose(tHalHandle hHal) { tpAniSirGlobal pMac = (tpAniSirGlobal) hHal; #ifndef GEN6_ONWARDS if(pMac->hal.pHalDxe){ #ifdef RTL8652 extern void * rtlglue_is_data_scratchpad_memory(void *); if(rtlglue_is_data_scratchpad_memory(pMac->hal.pHalDxe)) ; else #endif palFreeMemory(pMac, pMac->hal.pHalDxe); } #endif //GEN6_ONWARDS peClose(pMac); #ifdef FEATURE_WLAN_NON_INTEGRATED_SOC halClose(hHal); #endif /* Call routine to free-up all CFG data structures */ cfgDeInit(pMac); logDeinit(pMac); // Finally, de-allocate the global MAC datastructure: palFreeMemory( pMac->hHdd, pMac ); return eSIR_SUCCESS; }
tSirRetStatus macClose(tHalHandle hHal) { tpAniSirGlobal pMac = (tpAniSirGlobal) hHal; peClose(pMac); /* Call routine to free-up all CFG data structures */ cfgDeInit(pMac); logDeinit(pMac); // Finally, de-allocate the global MAC datastructure: vos_mem_free( pMac ); return eSIR_SUCCESS; }
tSirRetStatus macClose(tHalHandle hHal) { tpAniSirGlobal pMac = (tpAniSirGlobal) hHal; peClose(pMac); cfgDeInit(pMac); logDeinit(pMac); vos_mem_free( pMac ); return eSIR_SUCCESS; }