Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH wireless-next] wifi: mac80211: don't mark NO_ACK frames as failed in TX status radiotap
@ 2026-11-27 18:53 Ahmet Zeren via B4 Relay
  2026-11-28 13:21 ` Luka Gejak
  0 siblings, 1 reply; 3+ messages in thread
From: Ahmet Zeren via B4 Relay @ 2026-11-27 18:53 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Luka Gejak, Ahmet Zeren

From: Ahmet Zeren <niko3x@proton.me>

ieee80211_add_tx_radiotap_header() sets IEEE80211_RADIOTAP_F_TX_FAIL for
every unicast frame without IEEE80211_TX_STAT_ACK. That includes NO_ACK
frames that the driver reported with IEEE80211_TX_STAT_NOACK_TRANSMITTED,
i.e. frames that were sent successfully, so monitor interfaces show them
as failed.

Don't set TX_FAIL when IEEE80211_TX_STAT_NOACK_TRANSMITTED is set.

Tested with rtl8xxxu on an RTL8192CU (0bda:8178), on Linux 7.3.4 where
this code is the same: injected unicast NO_ACK frames were shown as
failed on the monitor interface and no longer are, and acked and unacked
frames are shown as before.

Reported-by: Luka Gejak <luka.gejak@linux.dev>
Closes: https://lore.kernel.org/linux-wireless/20261127115929.40205-1-luka.gejak@linux.dev/
Signed-off-by: Ahmet Zeren <niko3x@proton.me>
---
Luka noticed this while reviewing rtw88 injection patches, which now
report sent NO_ACK frames with IEEE80211_TX_STAT_NOACK_TRANSMITTED;
rtl8xxxu and rtw89 do the same.

AI tool use (Documentation/process/generated-content.rst): the patch was
written with help from Claude Code (Claude Opus 5.5). It was asked to
make the change Luka suggested and to test it on the RTL8192CU with a
patched mac80211 module. I have reviewed and tested the change and take
responsibility for it.
---
 net/mac80211/status.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index 5d1807ab46e..48db461d8da 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -315,7 +315,8 @@ ieee80211_add_tx_radiotap_header(struct ieee80211_local *local,
 
 	/* IEEE80211_RADIOTAP_TX_FLAGS */
 	txflags = 0;
-	if (!(info->flags & IEEE80211_TX_STAT_ACK) &&
+	if (!(info->flags & (IEEE80211_TX_STAT_ACK |
+			     IEEE80211_TX_STAT_NOACK_TRANSMITTED)) &&
 	    !is_multicast_ether_addr(hdr->addr1))
 		txflags |= IEEE80211_RADIOTAP_F_TX_FAIL;
 

---
base-commit: 18d0bedbb5f0538396cb7f763ed9cd1dd69c5b23
change-id: 20261127-b4-mac80211-noack-3d83c97c457b

Best regards,
--  
Ahmet Zeren <niko3x@proton.me>



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-28 14:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 18:53 [PATCH wireless-next] wifi: mac80211: don't mark NO_ACK frames as failed in TX status radiotap Ahmet Zeren via B4 Relay
2026-11-28 13:21 ` Luka Gejak
2026-11-28 14:31   ` Ahmet Zeren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox