1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-09-19 20:50:41 +00:00

remove USB_PACKET_OFFSET_SZ

This commit is contained in:
kimocoder 2020-03-07 23:01:53 +00:00
parent ea9aade289
commit 39e9af79d8
3 changed files with 1 additions and 12 deletions

View File

@ -3487,11 +3487,7 @@ void rtw_init_xmitframe(struct xmit_frame *pxframe)
#ifdef CONFIG_USB_HCI
pxframe->pkt = NULL;
#ifdef USB_PACKET_OFFSET_SZ
pxframe->pkt_offset = (PACKET_OFFSET_SZ / 8);
#else
pxframe->pkt_offset = 1;/* default use pkt_offset to fill tx desc */
#endif
#ifdef CONFIG_USB_TX_AGGREGATION
pxframe->agg_num = 1;

View File

@ -206,11 +206,7 @@
#endif
#ifdef CONFIG_USB_HCI
#ifdef USB_PACKET_OFFSET_SZ
#define PACKET_OFFSET_SZ (USB_PACKET_OFFSET_SZ)
#else
#define PACKET_OFFSET_SZ (8)
#endif
#define PACKET_OFFSET_SZ (8)
#define TXDESC_OFFSET (TXDESC_SIZE + PACKET_OFFSET_SZ)
#endif

View File

@ -631,9 +631,6 @@ u32 usb_write_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem)
#endif /* CONFIG_USE_USB_BUFFER_ALLOC_TX */
#ifdef USB_PACKET_OFFSET_SZ
#if (USB_PACKET_OFFSET_SZ == 0)
purb->transfer_flags |= URB_ZERO_PACKET;
#endif
#endif
#if 0