Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: r8188eu: remove pkt_hdrlen member of pkt_attrib structure

pkt_hdrlen has a constant value.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ivan Safonov and committed by
Greg Kroah-Hartman
111e4e5a bc9886d3

+1 -4
+1 -3
drivers/staging/rtl8188eu/core/rtw_xmit.c
··· 511 511 } 512 512 513 513 pattrib->ack_policy = 0; 514 - /* get ether_hdr_len */ 515 - pattrib->pkt_hdrlen = ETH_HLEN;/* pattrib->ether_type == 0x8100) ? (14 + 4): 14; vlan tag */ 516 514 517 515 pattrib->hdrlen = WLAN_HDR_A3_LEN; 518 516 pattrib->subtype = WIFI_DATA_TYPE; ··· 993 995 } 994 996 995 997 _rtw_open_pktfile(pkt, &pktfile); 996 - _rtw_pktfile_read(&pktfile, NULL, pattrib->pkt_hdrlen); 998 + _rtw_pktfile_read(&pktfile, NULL, ETH_HLEN); 997 999 998 1000 frg_inx = 0; 999 1001 frg_len = pxmitpriv->frag_len - 4;/* 2346-4 = 2342 */
-1
drivers/staging/rtl8188eu/include/rtw_xmit.h
··· 113 113 u8 dhcp_pkt; 114 114 u16 ether_type; 115 115 u16 seqnum; 116 - u16 pkt_hdrlen; /* the original 802.3 pkt header len */ 117 116 u16 hdrlen; /* the WLAN Header Len */ 118 117 u32 pktlen; /* the original 802.3 pkt raw_data len (not include 119 118 * ether_hdr data) */