1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-22 13:24:36 +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 #ifdef CONFIG_USB_HCI
pxframe->pkt = NULL; pxframe->pkt = NULL;
#ifdef USB_PACKET_OFFSET_SZ
pxframe->pkt_offset = (PACKET_OFFSET_SZ / 8); 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 #ifdef CONFIG_USB_TX_AGGREGATION
pxframe->agg_num = 1; pxframe->agg_num = 1;

View File

@ -206,11 +206,7 @@
#endif #endif
#ifdef CONFIG_USB_HCI #ifdef CONFIG_USB_HCI
#ifdef USB_PACKET_OFFSET_SZ
#define PACKET_OFFSET_SZ (USB_PACKET_OFFSET_SZ)
#else
#define PACKET_OFFSET_SZ (8) #define PACKET_OFFSET_SZ (8)
#endif
#define TXDESC_OFFSET (TXDESC_SIZE + PACKET_OFFSET_SZ) #define TXDESC_OFFSET (TXDESC_SIZE + PACKET_OFFSET_SZ)
#endif #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 */ #endif /* CONFIG_USE_USB_BUFFER_ALLOC_TX */
#ifdef USB_PACKET_OFFSET_SZ #ifdef USB_PACKET_OFFSET_SZ
#if (USB_PACKET_OFFSET_SZ == 0)
purb->transfer_flags |= URB_ZERO_PACKET;
#endif
#endif #endif
#if 0 #if 0