All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luka Gejak <luka.gejak@linux.dev>
To: niko3x@proton.me,
	Ahmet Zeren via B4 Relay <devnull+niko3x.proton.me@kernel.org>,
	Ping-Ke Shih <pkshih@realtek.com>
Cc: linux-wireless@vger.kernel.org,
	Bitterblue Smith <rtl8821cerfe2@gmail.com>,
	linux-kernel@vger.kernel.org, Ahmet Zeren <niko3x@proton.me>
Subject: Re: [PATCH RFT rtw-next 2/2] wifi: rtw88: honour the retry count and NO_ACK of injected frames
Date: Wed, 25 Nov 2026 22:52:48 +0100	[thread overview]
Message-ID: <7904907C-A864-4DE9-AE9B-65082A38B29B@linux.dev> (raw)
In-Reply-To: <20261124-b4-rtw88-inject-v1-2-f7457e496924@proton.me>

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@proton.me> 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

  reply	other threads:[~2026-11-25 21:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  8:32 [PATCH RFT rtw-next 0/2] wifi: rtw88: honour rate, retries and bandwidth of injected frames Ahmet Zeren via B4 Relay
2026-11-24  8:32 ` Ahmet Zeren
2026-11-24  8:32 ` [PATCH RFT rtw-next 1/2] wifi: rtw88: use the rate, bandwidth and GI " Ahmet Zeren via B4 Relay
2026-11-24  8:32   ` Ahmet Zeren
2026-11-25 21:50   ` Luka Gejak
2026-11-25 22:34     ` Ahmet Zeren
2026-11-25 22:55       ` Luka Gejak
2026-11-26  9:35         ` Luka Gejak
2026-11-24  8:32 ` [PATCH RFT rtw-next 2/2] wifi: rtw88: honour the retry count and NO_ACK " Ahmet Zeren via B4 Relay
2026-11-24  8:32   ` Ahmet Zeren
2026-11-25 21:52   ` Luka Gejak [this message]
2026-11-25 22:38     ` Ahmet Zeren

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=7904907C-A864-4DE9-AE9B-65082A38B29B@linux.dev \
    --to=luka.gejak@linux.dev \
    --cc=devnull+niko3x.proton.me@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=niko3x@proton.me \
    --cc=pkshih@realtek.com \
    --cc=rtl8821cerfe2@gmail.com \
    /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.