From: Ping-Ke Shih <pkshih@realtek.com>
To: Mehmet Fide <mehmet.fide@gmail.com>
Cc: "Jes Sorensen" <Jes.Sorensen@gmail.com>,
"Martin Kaistra" <martin.kaistra@linutronix.de>,
"Kalle Valo" <kvalo@kernel.org>,
"Taehee Yoo" <ap420073@gmail.com>,
"Andrea Merello" <andrea.merello@gmail.com>,
"Bitterblue Smith" <rtl8821cerfe2@gmail.com>,
"Georg Müller" <georgmueller@gmx.net>,
"Shreyansh Khajanchi" <hi@shreyan.sh>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"mehmet.fide@screeningeagle.com" <mehmet.fide@screeningeagle.com>
Subject: RE: [PATCH rtw-next 1/2] wifi: rtl8xxxu: keep the A-MPDU session state per station
Date: Wed, 2 Dec 2026 05:49:49 +0000 [thread overview]
Message-ID: <5be7b26350544a1ba31468e188e40e53@realtek.com> (raw)
In-Reply-To: <20261201093430.1771546-2-mehmet.fide@gmail.com>
Mehmet Fide <mehmet.fide@gmail.com> wrote:
> From: Mehmet Fide <mehmet.fide@screeningeagle.com>
>
> rtl8xxxu keeps the TX block ack state per TID for the whole device,
> which was enough while it supported station mode only. In AP mode only
> the first station that sends on a TID gets a block ack session, and
> the frames to every other station still get AGG_ENABLE, as the TID is
> marked operational for the device.
>
> Keep the started sessions in rtl8xxxu_sta_info, and aggregate a frame
> when mac80211 marks it with IEEE80211_TX_CTL_AMPDU.
>
> With an RTL8188EU AP (AP mode patches for it applied, initial gain set
> to 0x2e) and nine stations downloading at once, two stations got 14
> and 33 Mbit/s and the other seven 0.05 to 1.2 Mbit/s. With this change
> each station got 1 to 9 Mbit/s, 35 Mbit/s in total.
>
> Fixes: b468481c9ad3 ("wifi: rtl8xxxu: Declare AP mode support for 8188f")
I'd like to treat this patch as a feature. How about you?
> Signed-off-by: Mehmet Fide <mehmet.fide@screeningeagle.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
[...]
> - if (ampdu_enable && test_bit(tid, priv->tid_tx_operational))
> + if (ampdu_enable && (tx_info->flags & IEEE80211_TX_CTL_AMPDU))
At first glance, I'd check IEEE80211_TX_CTL_AMPDU by rtl8xxxu_tx() and
concrete into ampdu_enable.
But there are many (tricky) conditions to ampdu_enable. Could you help to
check if it is possible?
And remove the comment " /* (tx_info->flags & IEEE80211_TX_CTL_AMPDU) && */"
by the way, if possible.
> tx_desc->txdw1 |= cpu_to_le32(TXDESC32_AGG_ENABLE);
> else
> tx_desc->txdw1 |= cpu_to_le32(TXDESC32_AGG_BREAK);
next prev parent reply other threads:[~2026-12-02 5:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 9:34 [PATCH rtw-next 0/2] wifi: rtl8xxxu: A-MPDU sessions per station, 8188e FCS Mehmet Fide
2026-12-01 9:34 ` [PATCH rtw-next 1/2] wifi: rtl8xxxu: keep the A-MPDU session state per station Mehmet Fide
2026-12-02 5:49 ` Ping-Ke Shih [this message]
2026-12-01 9:34 ` [PATCH rtw-next 2/2] wifi: rtl8xxxu: let the 8188e append the FCS to received frames Mehmet Fide
2026-12-01 12:12 ` Bitterblue Smith
2026-12-01 12:52 ` Mehmet Fide
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=5be7b26350544a1ba31468e188e40e53@realtek.com \
--to=pkshih@realtek.com \
--cc=Jes.Sorensen@gmail.com \
--cc=andrea.merello@gmail.com \
--cc=ap420073@gmail.com \
--cc=georgmueller@gmx.net \
--cc=hi@shreyan.sh \
--cc=kvalo@kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=martin.kaistra@linutronix.de \
--cc=mehmet.fide@gmail.com \
--cc=mehmet.fide@screeningeagle.com \
--cc=rtl8821cerfe2@gmail.com \
/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