From b4bce69ca84a39489e37fe21588e140cf3ae8e46 Mon Sep 17 00:00:00 2001 From: llccd Date: Thu, 24 Oct 2019 19:36:44 +0800 Subject: [PATCH] Fix some 8814au slow speed issue --- hal/rtl8814a/usb/rtl8814au_xmit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hal/rtl8814a/usb/rtl8814au_xmit.c b/hal/rtl8814a/usb/rtl8814au_xmit.c index 2199968..76b3ad6 100644 --- a/hal/rtl8814a/usb/rtl8814au_xmit.c +++ b/hal/rtl8814a/usb/rtl8814au_xmit.c @@ -126,13 +126,13 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz ,u8 bag - if ((pxmitframe->frame_tag&0x0f) == DATA_FRAMETAG) { + if ((pxmitframe->frame_tag&0x0f) == DATA_FRAMETAG) { //RTW_INFO("pxmitframe->frame_tag == DATA_FRAMETAG\n"); rtl8814a_fill_txdesc_sectype(pattrib, ptxdesc); //offset 20 - } + #ifdef CONFIG_USB_TX_AGGREGATION if (pxmitframe->agg_num > 1){ //RTW_INFO("%s agg_num:%d\n",__FUNCTION__,pxmitframe->agg_num ); @@ -223,8 +223,8 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz ,u8 bag SET_TX_DESC_TX_RATE_8814A(ptxdesc, MRateToHwRate(pmlmeext->tx_rate)); } - - if ((pxmitframe->frame_tag&0x0f)== MGNT_FRAMETAG) { + } + else if ((pxmitframe->frame_tag&0x0f)== MGNT_FRAMETAG) { //RTW_INFO("pxmitframe->frame_tag == MGNT_FRAMETAG\n"); SET_TX_DESC_USE_RATE_8814A(ptxdesc, 1);