RE: [PATCH rtw-next v2 2/3] wifi: rtl8xxxu: honour the retry count of injected frames on gen1 chips

From: Ping-Ke Shih

Date: Sun Nov 22 2026 - 19:35:18 EST


Ahmet Zeren via B4 Relay <devnull+niko3x.proton.me@xxxxxxxxxx> wrote:
> From: Ahmet Zeren <niko3x@xxxxxxxxx>
>
> max_rate_tries is never set, so mac80211 clamps the retry count of every
> injected frame to zero and the radiotap retries field has no effect.
> Injected frames also ignore IEEE80211_TX_CTL_NO_ACK and use the default
> hardware retry limit of 48. Unicast frames to an absent station then
> take seconds each, which stalls all injection behind them.
>
> Advertise the 6-bit retry limit of the TX descriptor, and on gen1 chips
> program the retry limit of injected frames: none when no ACK is
> expected, otherwise the radiotap retry count.
>
> Tested on RTL8192CU (0bda:8178): 40 unicast frames at 1 Mbps to an
> absent station drain in ~0.13 s with NOACK or 0 retries, ~0.45 s with
> 2, ~1.1 s with 4 and ~3.3 s with 6 retries. Without this patch the same
> frames had not drained after 100 s, even with NOACK.
>
> Signed-off-by: Ahmet Zeren <niko3x@xxxxxxxxx>

Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>