Re: [PATCH wireless-next 6/8] wifi: rt2800: set the mac80211 fast-xmit and aggregation flags
From: Stanislaw Gruszka
Date: Fri Oct 30 2026 - 05:18:12 EST
On Thu, Oct 29, 2026 at 09:47:47PM +0800, Ho Jie Feng wrote:
> Enable AMSDU TX/RX support for this driver, which can increase
> throughput.
>
> Signed-off-by: Ho Jie Feng <hjf3108@xxxxxxxxx>
> ---
> drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
> index 032cd6ac345f0..8b4458a74d33d 100644
> --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
> +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
> @@ -11861,6 +11861,9 @@ static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
> ieee80211_hw_set(rt2x00dev->hw, SIGNAL_DBM);
> ieee80211_hw_set(rt2x00dev->hw, SUPPORTS_PS);
> ieee80211_hw_set(rt2x00dev->hw, TX_STATUS_NO_AMPDU_LEN);
> + ieee80211_hw_set(rt2x00dev->hw, SUPPORT_FAST_XMIT);
IFICT this flag will not take the effect since we have SUPPORTS_PS.
Also for WAP3 (802.11w) we fallback to software encryption -
that will prevent fast xmit as well. To truly enable
fast xmit, I think we would need add hardware encryption support for
WPA3 and also compromise by remove Power Save support (which is disabled by
default, so that's possibly fine).
Regards
Stanislaw
> + ieee80211_hw_set(rt2x00dev->hw, TX_AMSDU);
> + ieee80211_hw_set(rt2x00dev->hw, SUPPORTS_AMSDU_IN_AMPDU);
>
> /*
> * Don't set IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING for USB devices
> --
> 2.53.0
>