Merge tag 'pci-v5.18-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / drivers / staging / rtl8712 / rtl871x_recv.c
index c23f6b376111ed87c86997de7ab31b1cdcd7879c..66cc50f24e29b636e0fbd0cef7cf203b7883e185 100644 (file)
@@ -234,7 +234,7 @@ union recv_frame *r8712_portctrl(struct _adapter *adapter,
        u16 ether_type;
 
        pstapriv = &adapter->stapriv;
-       ptr = get_recvframe_data(precv_frame);
+       ptr = precv_frame->u.hdr.rx_data;
        pfhdr = &precv_frame->u.hdr;
        psta_addr = pfhdr->attrib.ta;
        psta = r8712_get_stainfo(pstapriv, psta_addr);
@@ -593,7 +593,7 @@ int r8712_wlanhdr_to_ethhdr(union recv_frame *precvframe)
        struct _adapter *adapter = precvframe->u.hdr.adapter;
        struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
 
-       u8 *ptr = get_recvframe_data(precvframe); /*point to frame_ctrl field*/
+       u8 *ptr = precvframe->u.hdr.rx_data; /*point to frame_ctrl field*/
        struct rx_pkt_attrib *pattrib = &precvframe->u.hdr.attrib;
 
        if (pattrib->encrypt)