mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-10 15:23:06 +00:00
rtl8188eu: Change union recv_frame to struct
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
89efde68f8
commit
7fd86158bf
11 changed files with 377 additions and 381 deletions
|
@ -36,16 +36,16 @@ int rtw_os_recv_resource_init(struct recv_priv *precvpriv,
|
|||
return _SUCCESS;
|
||||
}
|
||||
|
||||
/* alloc os related resource in union recv_frame */
|
||||
/* alloc os related resource in struct recv_frame */
|
||||
int rtw_os_recv_resource_alloc(struct adapter *padapter,
|
||||
union recv_frame *precvframe)
|
||||
struct recv_frame *precvframe)
|
||||
{
|
||||
precvframe->u.hdr.pkt_newalloc = NULL;
|
||||
precvframe->u.hdr.pkt = NULL;
|
||||
precvframe->pkt_newalloc = NULL;
|
||||
precvframe->pkt = NULL;
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
/* free os related resource in union recv_frame */
|
||||
/* free os related resource in struct recv_frame */
|
||||
void rtw_os_recv_resource_free(struct recv_priv *precvpriv)
|
||||
{
|
||||
}
|
||||
|
@ -118,12 +118,12 @@ void rtw_handle_tkip_mic_err(struct adapter *padapter, u8 bgroup)
|
|||
}
|
||||
|
||||
void rtw_hostapd_mlme_rx(struct adapter *padapter,
|
||||
union recv_frame *precv_frame)
|
||||
struct recv_frame *precv_frame)
|
||||
{
|
||||
}
|
||||
|
||||
int rtw_recv_indicatepkt(struct adapter *padapter,
|
||||
union recv_frame *precv_frame)
|
||||
struct recv_frame *precv_frame)
|
||||
{
|
||||
struct recv_priv *precvpriv;
|
||||
struct __queue *pfree_recv_queue;
|
||||
|
@ -133,7 +133,7 @@ int rtw_recv_indicatepkt(struct adapter *padapter,
|
|||
precvpriv = &(padapter->recvpriv);
|
||||
pfree_recv_queue = &(precvpriv->free_recv_queue);
|
||||
|
||||
skb = precv_frame->u.hdr.pkt;
|
||||
skb = precv_frame->pkt;
|
||||
if (skb == NULL) {
|
||||
RT_TRACE(_module_recv_osdep_c_, _drv_err_,
|
||||
("rtw_recv_indicatepkt():skb == NULL something wrong!!!!\n"));
|
||||
|
@ -143,18 +143,18 @@ int rtw_recv_indicatepkt(struct adapter *padapter,
|
|||
RT_TRACE(_module_recv_osdep_c_, _drv_info_,
|
||||
("rtw_recv_indicatepkt():skb != NULL !!!\n"));
|
||||
RT_TRACE(_module_recv_osdep_c_, _drv_info_,
|
||||
("rtw_recv_indicatepkt():precv_frame->u.hdr.rx_head =%p precv_frame->hdr.rx_data =%p\n",
|
||||
precv_frame->u.hdr.rx_head, precv_frame->u.hdr.rx_data));
|
||||
("rtw_recv_indicatepkt():precv_frame->rx_head =%p precv_frame->hdr.rx_data =%p\n",
|
||||
precv_frame->rx_head, precv_frame->rx_data));
|
||||
RT_TRACE(_module_recv_osdep_c_, _drv_info_,
|
||||
("precv_frame->hdr.rx_tail =%p precv_frame->u.hdr.rx_end =%p precv_frame->hdr.len =%d\n",
|
||||
precv_frame->u.hdr.rx_tail, precv_frame->u.hdr.rx_end,
|
||||
precv_frame->u.hdr.len));
|
||||
("precv_frame->hdr.rx_tail =%p precv_frame->rx_end =%p precv_frame->hdr.len =%d\n",
|
||||
precv_frame->rx_tail, precv_frame->rx_end,
|
||||
precv_frame->len));
|
||||
|
||||
skb->data = precv_frame->u.hdr.rx_data;
|
||||
skb->data = precv_frame->rx_data;
|
||||
|
||||
skb_set_tail_pointer(skb, precv_frame->u.hdr.len);
|
||||
skb_set_tail_pointer(skb, precv_frame->len);
|
||||
|
||||
skb->len = precv_frame->u.hdr.len;
|
||||
skb->len = precv_frame->len;
|
||||
|
||||
RT_TRACE(_module_recv_osdep_c_, _drv_info_,
|
||||
("skb->head =%p skb->data =%p skb->tail =%p skb->end =%p skb->len =%d\n",
|
||||
|
@ -165,7 +165,7 @@ int rtw_recv_indicatepkt(struct adapter *padapter,
|
|||
struct sk_buff *pskb2 = NULL;
|
||||
struct sta_info *psta = NULL;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
|
||||
struct rx_pkt_attrib *pattrib = &precv_frame->attrib;
|
||||
int bmcast = IS_MCAST(pattrib->dst);
|
||||
|
||||
if (memcmp(pattrib->dst, myid(&padapter->eeprompriv),
|
||||
|
@ -211,7 +211,7 @@ int rtw_recv_indicatepkt(struct adapter *padapter,
|
|||
_recv_indicatepkt_end:
|
||||
|
||||
/* pointers to NULL before rtw_free_recvframe() */
|
||||
precv_frame->u.hdr.pkt = NULL;
|
||||
precv_frame->pkt = NULL;
|
||||
|
||||
rtw_free_recvframe(precv_frame, pfree_recv_queue);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue