Linux wireless drivers development
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Jimmy <kernel@jimmycushnie.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: rtw89: 8922ae: ~80 Mbps TCP throughput vs ~600 Mbps on Windows with the same hardware
Date: Wed, 25 Nov 2026 01:21:13 +0000	[thread overview]
Message-ID: <077a164224714d3dba29cd650c385eb2@realtek.com> (raw)
In-Reply-To: <7530cda9-06c9-41af-885b-238eb20a66f2@jimmycushnie.com>


Jimmy <kernel@jimmycushnie.com> wrote:
> Ping-Ke Shih <pkshih@realtek.com> wrote:
>  > Jimmy <kernel@jimmycushnie.com> wrote:
>  >> I have a RTL8922AE which only gets 60-120 Mbps TCP throughput on
>  >> Linux, even though the link reports 1200.9 MBit/s HE-MCS 11 NSS 2 in
>  >> both directions with a strong signal.
>  >
>  > It looks like PHY rate is normal. Please capture air packets and
>  > compare the difference between Windows and Linux.
> 
> Thank you for the debugging advice. I captured air traffic with my
> macbook's sniffer tool during a speed test on the PC, once on Linux and
> once on Windows. PHY rates look the same on both: data frames are at
> HE-MCS 10/11 (1080-1201 Mb/s), and Linux actually has fewer retries
> (0.2% of frames vs 1.6% on Windows).
> 
> The main difference I could find is that Windows uses BlockAck way more
> than Linux:
> 
>                                    Linux     Windows
>    BlockAck frames sent by PC      0         30332
>    BlockAck frames sent by AP      0         16455

It is weird why Linux doesn't try to build BA session. 
Maybe you can try another AP, such as your cell phone.

Check TX side first:

Check if driver enters rtw89_core_txq_check_agg() and queue work
    ieee80211_queue_work(hw, &rtwdev->ba_work)

and then
    ieee80211_start_tx_ba_session(sta, tid, 0);

after BA session establish, the function is called:

    rtw89_ops_ampdu_action()

>    PC data MPDUs per A-MPDU        1.0       4.1
>    Normal ACKs sent to PC          52704     3875

So I think the difference is A-MSDU or A-MPDU number. For TX direction,
try to (hard code) increase desc_info->ampdu_num to 31 in
rtw89_core_tx_update_ampdu_info().

For RX direction, check the Add-BA response from STA to see the number
of buffer is normal (normally it should be 32 or 64) [1]

(I find this by google search)
[1] https://mrncciew.com/2014/11/01/cwap-802-11-block-ack/

Ping-Ke


      reply	other threads:[~2026-11-25  1:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  7:07 rtw89: 8922ae: ~80 Mbps TCP throughput vs ~600 Mbps on Windows with the same hardware Jimmy
2026-11-24  9:19 ` Ping-Ke Shih
2026-11-24 19:12   ` Jimmy
2026-11-25  1:21     ` Ping-Ke Shih [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=077a164224714d3dba29cd650c385eb2@realtek.com \
    --to=pkshih@realtek.com \
    --cc=kernel@jimmycushnie.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox