public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH rtw-next 1/2] wifi: rtw88: Fix RX aggregation settings for RTL8723DS
@ 2025-04-28 21:26 Bitterblue Smith
  2025-04-28 21:27 ` [PATCH rtw-next 2/2] wifi: rtw88: Handle RTL8723D(S) with blank efuse Bitterblue Smith
  2025-04-29  1:03 ` [PATCH rtw-next 1/2] wifi: rtw88: Fix RX aggregation settings for RTL8723DS Ping-Ke Shih
  0 siblings, 2 replies; 5+ messages in thread
From: Bitterblue Smith @ 2025-04-28 21:26 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org; +Cc: Ping-Ke Shih

Use the same RX aggregation size and timeout used by the out-of-tree
RTL8723DS driver. Also set mystery bit 31 of REG_RXDMA_AGG_PG_TH. This
improves the RX speed from ~44 Mbps to ~67 Mbps.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
---
 drivers/net/wireless/realtek/rtw88/sdio.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtw88/sdio.c b/drivers/net/wireless/realtek/rtw88/sdio.c
index c57f683d9af8..6f63fd5db665 100644
--- a/drivers/net/wireless/realtek/rtw88/sdio.c
+++ b/drivers/net/wireless/realtek/rtw88/sdio.c
@@ -677,12 +677,20 @@ static void rtw_sdio_enable_rx_aggregation(struct rtw_dev *rtwdev)
 {
 	u8 size, timeout;
 
-	if (rtw_chip_wcpu_11n(rtwdev)) {
+	switch (rtwdev->chip->id) {
+	case RTW_CHIP_TYPE_8703B:
 		size = 0x6;
 		timeout = 0x6;
-	} else {
+		break;
+	case RTW_CHIP_TYPE_8723D:
+		size = 0xa;
+		timeout = 0x3;
+		rtw_write8_set(rtwdev, REG_RXDMA_AGG_PG_TH + 3, BIT(7));
+		break;
+	default:
 		size = 0xff;
 		timeout = 0x1;
+		break;
 	}
 
 	/* Make the firmware honor the size limit configured below */
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-29 11:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-28 21:26 [PATCH rtw-next 1/2] wifi: rtw88: Fix RX aggregation settings for RTL8723DS Bitterblue Smith
2025-04-28 21:27 ` [PATCH rtw-next 2/2] wifi: rtw88: Handle RTL8723D(S) with blank efuse Bitterblue Smith
2025-04-29  1:09   ` Ping-Ke Shih
2025-04-29  1:03 ` [PATCH rtw-next 1/2] wifi: rtw88: Fix RX aggregation settings for RTL8723DS Ping-Ke Shih
2025-04-29 11:38   ` Bitterblue Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox