Re: [PATCH rtw-next 2/2] wifi: rtw89: pci: fix TX status and counters for NO_ACK frames
From: Enver Ikromov
Date: Fri Nov 27 2026 - 05:16:41 EST
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@xxxxxxxxxxxxxxx
>
> 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