Linux wireless drivers development
 help / color / mirror / Atom feed
From: Luka Gejak <luka.gejak@linux.dev>
To: niko3x@proton.me,
	Ahmet Zeren via B4 Relay <devnull+niko3x.proton.me@kernel.org>,
	Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, Ahmet Zeren <niko3x@proton.me>
Subject: Re: [PATCH wireless-next] wifi: mac80211: don't mark NO_ACK frames as failed in TX status radiotap
Date: Sat, 28 Nov 2026 14:21:58 +0100	[thread overview]
Message-ID: <414C2697-5365-49ED-A766-98BEBEE37E76@linux.dev> (raw)
In-Reply-To: <20261127-b4-mac80211-noack-v1-1-c7e6f7c56d3c@proton.me>

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

  reply	other threads:[~2026-11-28 13:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2026-11-28 14:31   ` Ahmet Zeren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=414C2697-5365-49ED-A766-98BEBEE37E76@linux.dev \
    --to=luka.gejak@linux.dev \
    --cc=devnull+niko3x.proton.me@kernel.org \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=niko3x@proton.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox