hal/phydm/phydm_interface.c
void
odm_free_memory(
	struct PHY_DM_STRUCT	*p_dm,
	void		*p_ptr,
	u32		length
)
{
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP))
	kfree(p_ptr);
#elif (DM_ODM_SUPPORT_TYPE & ODM_CE) && defined(DM_ODM_CE_MAC80211)
	kfree(p_ptr);
#elif (DM_ODM_SUPPORT_TYPE & ODM_CE)
	rtw_vmfree(p_ptr, length);
#elif (DM_ODM_SUPPORT_TYPE & ODM_WIN)
	/* struct _ADAPTER*    adapter = p_dm->adapter; */
	PlatformFreeMemory(p_ptr, length);
#endif
}
/* length could be ignored, used to detect memory leakage. */
length could be ignored, used to detect memory leakage.
length could be ignored used to detect memory leakage .
void
odm_free_memory(
	struct PHY_DM_STRUCT	*p_dm,
	void		*p_ptr,
	u32		length
)
{
#if (DM_ODM_SUPPORT_TYPE & (ODM_AP))
	kfree(p_ptr);
#elif (DM_ODM_SUPPORT_TYPE & ODM_CE) && defined(DM_ODM_CE_MAC80211)
	kfree(p_ptr);
#elif (DM_ODM_SUPPORT_TYPE & ODM_CE)
	rtw_vmfree(p_ptr, length);
#elif (DM_ODM_SUPPORT_TYPE & ODM_WIN)
	PlatformFreeMemory(p_ptr, length);
#endif
}
void odm_free_memory ( struct PHY_DM_STRUCT * p_dm , void * p_ptr , u32 length ) { #if ( DM_ODM_SUPPORT_TYPE & ( ODM_AP ) ) kfree ( p_ptr ) ; #elif ( DM_ODM_SUPPORT_TYPE & ODM_CE ) && defined ( DM_ODM_CE_MAC80211 ) kfree ( p_ptr ) ; #elif ( DM_ODM_SUPPORT_TYPE & ODM_CE ) rtw_vmfree ( p_ptr , length ) ; #elif ( DM_ODM_SUPPORT_TYPE & ODM_WIN ) PlatformFreeMemory ( p_ptr , length ) ; #endif }
length could be ignored, used to detect memory leakage.
length could be ignored used to detect memory leakage .
/* struct _ADAPTER*    adapter = p_dm->adapter; */