Skip to content

Commit

Permalink
rtw88: increse the size of rx buffer size
Browse files Browse the repository at this point in the history
[ Upstream commit ee75573 ]

The vht capability of MAX_MPDU_LENGTH is 11454 in rtw88; however, the rx
buffer size for each packet is 8192. When receiving packets that are
larger than rx buffer size, it will leads to rx buffer ring overflow.

Signed-off-by: Tzu-En Huang <tehuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200925061219.23754-2-tehuang@realtek.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Tzu-En Huang authored and gregkh committed Oct 29, 2020
1 parent fc9db7f commit 0a35951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/realtek/rtw88/pci.h
Expand Up @@ -9,8 +9,8 @@
#define RTK_BEQ_TX_DESC_NUM 256

#define RTK_MAX_RX_DESC_NUM 512
/* 8K + rx desc size */
#define RTK_PCI_RX_BUF_SIZE (8192 + 24)
/* 11K + rx desc size */
#define RTK_PCI_RX_BUF_SIZE (11454 + 24)

#define RTK_PCI_CTRL 0x300
#define BIT_RST_TRXDMA_INTF BIT(20)
Expand Down

0 comments on commit 0a35951

Please sign in to comment.