list_add_tail(&(precvframe->u.list), &(precvpriv->free_recv_queue.queue));
- rtw_os_recv_resource_alloc(padapter, precvframe);
+ precvframe->u.hdr.pkt_newalloc = NULL;
+ precvframe->u.hdr.pkt = NULL;
precvframe->u.hdr.len = 0;
void rtw_free_recv_priv(struct recv_priv *precvpriv);
-void rtw_os_recv_resource_alloc(struct adapter *padapter, union recv_frame *precvframe);
void rtw_os_recv_resource_free(struct recv_priv *precvpriv);
void rtw_os_recvbuf_resource_free(struct adapter *padapter, struct recv_buf *precvbuf);
#include <net/cfg80211.h>
#include <linux/unaligned.h>
-/* alloc os related resource in union recv_frame */
-void rtw_os_recv_resource_alloc(struct adapter *padapter, union recv_frame *precvframe)
-{
- precvframe->u.hdr.pkt_newalloc = precvframe->u.hdr.pkt = NULL;
-}
-
/* free os related resource in union recv_frame */
void rtw_os_recv_resource_free(struct recv_priv *precvpriv)
{