mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Enver Ikromov <owner@ph4ntom-rev.uz>
To: Ping-Ke Shih <pkshih@realtek.com>
Cc: Enver Ikromov <owner@ph4ntom-rev.uz>,
	linux-wireless@vger.kernel.org, Ahmet Zeren <niko3x@proton.me>,
	Luka Gejak <luka.gejak@linux.dev>,
	Bitterblue Smith <rtl8821cerfe2@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH rtw-next 2/2] wifi: rtw89: pci: fix TX status and counters for NO_ACK frames
Date: Fri, 27 Nov 2026 15:12:59 +0500	[thread overview]
Message-ID: <20261127101259.91-1-owner@ph4ntom-rev.uz> (raw)
In-Reply-To: <355183d7bab743e99e3d8bac03d80ed8@realtek.com>

On Fri, Nov 27, 2026 at 07:32:13AM +0000, Ping-Ke Shih wrote:
> > In rtw89_pci_tx_status(), IEEE80211_TX_STAT_NOACK_TRANSMITTED is set
> > unconditionally whenever IEEE80211_TX_CTL_NO_ACK is present, even when
> > the frame was dropped (RTW89_TX_MACID_DROP or RTW89_TX_LIFE_TIME)
> > without being transmitted.
>
> What is the problem?
>
> Set it only if successfully transmit?

Yes, set it only when the frame was actually sent. PCIe chips like
RTL8852AE don't enable tx_rpt, so injected NO_ACK frames report TX
status through rtw89_pci_tx_status() rather than rtw89_tx_rpt_tx_status().
Setting NOACK_TRANSMITTED on MACID_DROP or LIFE_TIME makes mac80211
count dropped frames as transmitted, and setting STAT_ACK on TX_DONE
reports NO_ACK frames as acked. On AX unicast NO_ACK with tx_cnt_lmt = 1,
the single TX attempt finishes with RTW89_TX_RETRY_LIMIT, so both
TX_DONE and TX_RETRY_LIMIT mean it went out on air.

[...]
> > Clear stale TX status bits and set IEEE80211_TX_STAT_NOACK_TRANSMITTED
> > exclusively when a NO_ACK frame completes with RTW89_TX_DONE or
> > RTW89_TX_RETRY_LIMIT, reserving IEEE80211_TX_STAT_ACK and
> > tx_ring->tx_acked for non-NO_ACK completions while still accounting
> > RTW89_TX_LIFE_TIME and RTW89_TX_MACID_DROP as failures.
>
> I think no need this.
>
> > Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver")
> > Cc: stable@vger.kernel.org
>
> I don't think this a big deal. It looks like we have Fixes/Cc stable everywhere...
[...]
> Why should we clear these two bits?

Right, tx_ring->tx_acked and the other ring counters should stay as-is,
and clearing those two bits ahead is unnecessary. In v2 I'll leave the
tx_ring counters untouched, drop the flag clearing and Fixes/Cc: stable
tags, and keep the commit message short.

Thanks,
Enver

      reply	other threads:[~2026-11-27 10:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  8:31 [PATCH rtw-next 0/2] wifi: rtw89: fix injected retry limit and NO_ACK TX status Enver Ikromov
2026-11-26  8:31 ` [PATCH rtw-next 1/2] wifi: rtw89: fix retry limit and NO_ACK status for injected frames Enver Ikromov
2026-11-27  7:27   ` Ping-Ke Shih
2026-11-27 10:12     ` Enver Ikromov
2026-11-26  8:31 ` [PATCH rtw-next 2/2] wifi: rtw89: pci: fix TX status and counters for NO_ACK frames Enver Ikromov
2026-11-27  7:32   ` Ping-Ke Shih
2026-11-27 10:12     ` Enver Ikromov [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=20261127101259.91-1-owner@ph4ntom-rev.uz \
    --to=owner@ph4ntom-rev.uz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luka.gejak@linux.dev \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®