diff --git a/core/rtw_xmit.c b/core/rtw_xmit.c index f9e59b8..d3a36a2 100644 --- a/core/rtw_xmit.c +++ b/core/rtw_xmit.c @@ -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; diff --git a/include/rtw_xmit.h b/include/rtw_xmit.h index 6c718d5..7df0ccd 100644 --- a/include/rtw_xmit.h +++ b/include/rtw_xmit.h @@ -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 diff --git a/os_dep/linux/usb_ops_linux.c b/os_dep/linux/usb_ops_linux.c index a05446e..16fc944 100644 --- a/os_dep/linux/usb_ops_linux.c +++ b/os_dep/linux/usb_ops_linux.c @@ -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