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

* Re: [PATCH wireless-next] wifi: mac80211: don't mark NO_ACK frames as failed in TX status radiotap
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Luka Gejak @ 2026-11-28 13:21 UTC (permalink / raw)
  To: niko3x, Ahmet Zeren via B4 Relay, Johannes Berg
  Cc: linux-wireless, Ahmet Zeren

Hi Ahmet,

Thanks for picking this up. One comment below.

On November 27, 2026 9:53:25 PM GMT+03:00, Ahmet Zeren
<niko3x@proton.me> wrote:

[ ... ]

> 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;

It looks like rtw89 sets IEEE80211_TX_STAT_NOACK_TRANSMITTED for
NO_ACK frames even on RTW89_TX_MACID_DROP.

For a unicast frame the monitor currently shows TX_FAIL because the
ACK bit is clear. With this change it would look like the frame went
out even though rtw89 reported a drop.

Enver's v2 stops setting the bit for those drops in both paths, so we
should probably wait for it to get merged before merging this patch.
https://lore.kernel.org/r/20261127101307.15-1-owner@ph4ntom-rev.uz/

Either way the change looks good to me.

Reviewed-by: Luka Gejak <luka.gejak@linux.dev>

Best regards,
Luka Gejak

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

* Re: [PATCH wireless-next] wifi: mac80211: don't mark NO_ACK frames as failed in TX status radiotap
  2026-11-28 13:21 ` Luka Gejak
@ 2026-11-28 14:31   ` Ahmet Zeren
  0 siblings, 0 replies; 3+ messages in thread
From: Ahmet Zeren @ 2026-11-28 14:31 UTC (permalink / raw)
  To: Luka Gejak; +Cc: Ahmet Zeren via B4 Relay, Johannes Berg, linux-wireless

Hi Luka,

Thanks for the review.

> Enver's v2 stops setting the bit for those drops in both paths, so we
> should probably wait for it to get merged before merging this patch.

Agreed. Johannes, if you take this, it would be best after Enver's
rtw89 fixes, so that frames rtw89 dropped don't show up as sent:
https://lore.kernel.org/r/20261127101307.15-1-owner@ph4ntom-rev.uz/

Thanks,
Ahmet



Sent with Proton Mail secure email.

^ permalink raw reply	[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