Re: [PATCH RFT rtw-next v2 2/2] wifi: rtw88: honour the retry count and NO_ACK of injected frames
From: Ahmet Zeren
Date: Fri Nov 27 2026 - 07:24:45 EST
Hi Luka,
> As far as I can see, ieee80211_add_tx_radiotap_header() sets
> IEEE80211_RADIOTAP_F_TX_FAIL for a unicast frame whenever
> IEEE80211_TX_STAT_ACK is clear.
Yes I missed that. It also affects rtl8xxxu, which already reports
NO_ACK frames as IEEE80211_TX_STAT_NOACK_TRANSMITTED. I think it's
better fixed in mac80211, so that TX_FAIL is not set when
IEEE80211_TX_STAT_NOACK_TRANSMITTED is. I'll send a separate patch for
that, tested with rtl8xxxu.
> For the test in the cover letter, I think we need the raw CCX result to
> tell whether the firmware actually reported retry exhaustion.
Agreed. For testing only, this prints it with CONFIG_RTW88_DEBUG and
rtw88_core debug_mask=0x2:
--- a/drivers/net/wireless/realtek/rtw88/tx.c
+++ b/drivers/net/wireless/realtek/rtw88/tx.c
@@ void rtw_tx_report_handle(struct rtw_dev *rtwdev, struct sk_buff *skb, int src)
st = GET_CCX_REPORT_STATUS_V1(c2h->payload);
}
+ rtw_dbg(rtwdev, RTW_DBG_TX, "tx report: sn %u status 0x%02x\n", sn, st);
+
spin_lock_irqsave(&tx_report->q_lock, flags);
Thanks,
Ahmet
Sent with Proton Mail secure email.