Re: [PATCH RFT rtw-next 2/2] wifi: rtw88: honour the retry count and NO_ACK of injected frames
From: Luka Gejak
Date: Wed Nov 25 2026 - 16:53:02 EST
Hi Ahmet,
I have two comments for patch 2 as well.
On November 24, 2026 11:32:31 AM GMT+03:00, Ahmet Zeren
<niko3x@xxxxxxxxx> wrote:
[ ... ]
> info = IEEE80211_SKB_CB(skb);
> ieee80211_tx_info_clear_status(info);
> + if (info->flags & IEEE80211_TX_CTL_NO_ACK)
> + info->flags |= IEEE80211_TX_STAT_NOACK_TRANSMITTED;
> if (acked)
> info->flags |= IEEE80211_TX_STAT_ACK;
As far as I can see, a successful report for a group addressed frame
sets both flags. The zero CCX status means the transmission succeeded,
so for these frames it does not imply an ACK. Could we reserve
IEEE80211_TX_STAT_ACK for frames that expect an ACK and use the CCX result
to decide whether a NO_ACK frame was transmitted?
[ ... ]
> + if (info->flags & IEEE80211_TX_CTL_NO_ACK) {
> + pkt_info->rty_lmt_en = true;
> + pkt_info->data_rty_lmt = 0;
> + } else if (rate->count) {
> + pkt_info->rty_lmt_en = true;
> + pkt_info->data_rty_lmt = rate->count - 1;
> + }
> +
> if (!(info->control.flags & IEEE80211_TX_CTRL_RATE_INJECT))
> return;
So if I read the parser right, it clears IEEE80211_TX_CTRL_RATE_INJECT
when the requested rate is unsupported but still fills in rate->count.
For example, if I replay a capture with a two stream VHT rate on a one
stream adapter, we keep the usual rate selection but limit the frame to
one attempt when the capture has no retry field.
Could we gate the rate->count case on IEEE80211_TX_CTRL_RATE_INJECT as
well, like rtl8xxxu does? The NO_ACK case can still apply without a rate.
Best regards,
Luka Gejak