All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: "niko3x@proton.me" <niko3x@proton.me>,
	Jes Sorensen <Jes.Sorensen@gmail.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"Luka Gejak" <luka.gejak@linux.dev>
Subject: RE: [PATCH rtw-next 1/2] wifi: rtl8xxxu: limit max_rate_tries to what mac80211 can pass
Date: Mon, 30 Nov 2026 02:11:55 +0000	[thread overview]
Message-ID: <919f452e60f8473ca84a31dfcbac340c@realtek.com> (raw)
In-Reply-To: <20261127-b4-rtl8xxxu-retry-v1-1-b263ab1e0d1b@proton.me>

Ahmet Zeren via B4 Relay <devnull+niko3x.proton.me@kernel.org> wrote:
> From: Ahmet Zeren <niko3x@proton.me>
> 
> The retry count of a rate is a 5-bit field in mac80211, so it cannot
> hold the 64 tries set as max_rate_tries. Radiotap retry counts above 30
> wrap around: 31 retries fall back to the default retry limit and 40
> retries become 8.
> 
> Limit max_rate_tries by IEEE80211_MAX_TX_RETRY as well.
> 
> Tested on RTL8192CU (0bda:8178) with injected frames to an absent
> station, reading the retry count from the TX report: 31 and 40
> requested retries are now capped at 30.
> 
> Fixes: b2ccb6a04761 ("wifi: rtl8xxxu: honour the retry count of injected frames on gen1 chips")
> Signed-off-by: Ahmet Zeren <niko3x@proton.me>

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


  reply	other threads:[~2026-11-30  2:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27 18:53 [PATCH rtw-next 0/2] wifi: rtl8xxxu: fix two retry count overflows Ahmet Zeren via B4 Relay
2026-11-27 18:53 ` Ahmet Zeren
2026-11-27 18:53 ` [PATCH rtw-next 1/2] wifi: rtl8xxxu: limit max_rate_tries to what mac80211 can pass Ahmet Zeren via B4 Relay
2026-11-27 18:53   ` Ahmet Zeren
2026-11-30  2:11   ` Ping-Ke Shih [this message]
2026-12-01  8:28   ` Ping-Ke Shih
2026-11-27 18:53 ` [PATCH rtw-next 2/2] wifi: rtl8xxxu: limit the retry count in the TX report Ahmet Zeren via B4 Relay
2026-11-27 18:53   ` Ahmet Zeren
2026-11-30  2:14   ` Ping-Ke Shih

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=919f452e60f8473ca84a31dfcbac340c@realtek.com \
    --to=pkshih@realtek.com \
    --cc=Jes.Sorensen@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luka.gejak@linux.dev \
    --cc=niko3x@proton.me \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.