Linux wireless drivers development
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Vincent Schurink <spam@acio.nl>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: [PATCH rtw-next v5] wifi: rtw89: set RA init rate level when the station RSSI is known
Date: Mon, 16 Nov 2026 09:17:37 +0000	[thread overview]
Message-ID: <96354bbc054c46f9b9546a19d3037566@realtek.com> (raw)
In-Reply-To: <20261116085534.66746-1-spam@acio.nl>

Vincent Schurink <spam@acio.nl> wrote:
> When a station associates to an AP, the AP does not know the RSSI of
> the station yet. Thus, rtw89_phy_ra_assoc() sends init_rate_lv 0 to the
> firmware. With this value, the firmware RA of RTL8922A often uses 20 MHz
> and VHT-MCS 2 for the station. It does not try a higher rate, also when
> the PER is 0. On an 80 MHz AP, the TCP throughput to the station
> then stays at approximately 36 Mbit/s for the full connection.
> 
> Move the mapping from RSSI to init_rate_lv to a function. In a test on
> RTL8922A, the firmware used init_rate_lv only together with upd_all, and
> upd_all resets the RA context. Thus, the RA association sets
> rssi_unknown in the RA info when the RSSI is not known. When the RSSI is
> known, the RA update sets init_rate_lv and upd_all one time. Other RA
> updates still send init_rate_lv 0.
> The flag is in a struct_group at the end of the RA info, and
> rtw89_phy_ra_sta_update() clears the RA info only up to this group.
> Thus, the flag stays until the RA update uses it.
> 
> Tested on RTL8912AU (RTL8922A, USB) in AP mode with hostapd 2.10 and
> VHT 80 MHz. The client is an Intel Meteor Lake CNVi (iwlwifi) at -34 to
> -40 dBm. Each test reconnects the client, then sends TCP from the AP for
> 60 s.
> Before: 6 of 8 connections stay at VHT-MCS 2 and 20 MHz, 36 Mbit/s.
> After: 8 of 8 connections use VHT-MCS 9 at 80 MHz, 671 to 683 Mbit/s.
> 
> Suggested-by: Ping-Ke Shih <pkshih@realtek.com>
> Signed-off-by: Vincent Schurink <spam@acio.nl>

Acked-by: Ping-Ke Shih <pkshih@realtek.com>


      reply	other threads:[~2026-11-16  9:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16  8:55 [PATCH rtw-next v5] wifi: rtw89: set RA init rate level when the station RSSI is known Vincent Schurink
2026-11-16  9:17 ` 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=96354bbc054c46f9b9546a19d3037566@realtek.com \
    --to=pkshih@realtek.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=spam@acio.nl \
    /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