Re: [PATCH rtw-next 1/2] wifi: rtw89: fix retry limit and NO_ACK status for injected frames

From: Enver Ikromov

Date: Fri Nov 27 2026 - 05:13:21 EST


On Fri, Nov 27, 2026 at 07:27:12AM +0000, Ping-Ke Shih wrote:
> > Commit 92608bb5f14f ("wifi: rtw89: honor ASSIGN_SEQ, retries, and
> > NO_ACK for injected frames") has three issues:
>
> Your Fixes tag has said this.
[...]
> > 3. rtw89_tx_rpt_tx_status() sets IEEE80211_TX_STAT_NOACK_TRANSMITTED
> > unconditionally for NO_ACK frames (including RTW89_TX_MACID_DROP and
> > RTW89_TX_LIFE_TIME)
>
> I don't know why there is a problem?

In mac80211 (status.c), IEEE80211_TX_STAT_NOACK_TRANSMITTED sets
noack_success = true, so a dropped skb gets counted in
dot11TransmittedFrameCount (and skips retry_failed / lost_packet when
sta is present) even though it was never sent.

[...]
> Generated by LLM? Can you reword commit message yourself?

Yes, sorry for the noise. English isn't my first language so I used an
LLM to polish the commit log and it came out way too verbose. I'll
rewrite it plainly myself in v2 and drop the redundant Fixes sentence.

> No need parenthesis for ( & )
[...]
> You need to consider min of driver and ieee80211, so maybe
> min(0x3f, IEEE80211_MAX_TX_RETRY)
>
> The logic is clearer.
[...]
> Why do you need to clear these two bits ahead?
[...]
> I think the original ~IEEE80211_TX_STAT_ACK is not necessary.

Agreed on all of these. The TX_STAT_* bits are already zero on a fresh
skb, and min(RTW89_TX_DATA_CNT_LMT_MAX, IEEE80211_MAX_TX_RETRY) is much
clearer. Will update in v2.

Thanks,
Enver