u32 _r8712_free_sta_priv(struct sta_priv *pstapriv) { if (pstapriv) { mfree_sta_priv_lock(pstapriv); kfree(pstapriv->pallocated_stainfo_buf); } return _SUCCESS; }
u32 _rtw_free_sta_priv(struct sta_priv *pstapriv) { _func_enter_; if(pstapriv){ mfree_sta_priv_lock(pstapriv); _rtw_mfree(pstapriv->pallocated_stainfo_buf, sizeof(struct sta_info)*NUM_STA+4); } _func_exit_; return _SUCCESS; }
u32 _free_sta_priv(struct sta_priv *pstapriv) { _func_enter_; if(pstapriv){ mfree_sta_priv_lock(pstapriv); if(pstapriv->pallocated_stainfo_buf) { #ifdef MEM_ALLOC_REFINE rtw_vmfree(pstapriv->pallocated_stainfo_buf, sizeof(struct sta_info)*NUM_STA+4); #else rtw_mfree(pstapriv->pallocated_stainfo_buf, sizeof(struct sta_info)*NUM_STA+4); #endif } } _func_exit_; return _SUCCESS; }