From: "Luka Gejak" <luka.gejak@linux.dev>
To: niko3x@proton.me, "Johannes Berg" <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, "Ahmet Zeren" <niko3x@proton.me>
Subject: Re: [PATCH wireless-next] wifi: mac80211: reject invalid VHT rate combinations in radiotap
Date: Thu, 03 Dec 2026 16:31:53 +0000 [thread overview]
Message-ID: <51316640d0350608a477885095297e08993c28a9@linux.dev> (raw)
In-Reply-To: <20261203-mac80211-vht-valid-v1-1-2309496c48a2@proton.me>
December 2, 2026 at 11:23 PM, "Ahmet Zeren via B4 Relay" <devnull+niko3x.proton.me@kernel.org> wrote:
>
> From: Ahmet Zeren <niko3x@proton.me>
>
> ieee80211_parse_tx_radiotap() checks a radiotap VHT rate only against
> the TX MCS map, which doesn't depend on the bandwidth. Some MCS, NSS and
> bandwidth combinations are not valid in 802.11ac, e.g. MCS 9 with one
> stream at 20 MHz, but they are still passed to the driver as the rate
> of the injected frame.
>
> Check the combination as well, so that such frames are handled like
> other frames with an unsupported radiotap rate. The invalid combinations
> are the ones minstrel_get_valid_vht_rates() excludes, plus MCS 9 with
> three streams at 160 MHz.
>
> Tested with mac80211_hwsim at 20, 40 and 80 MHz: frames with an invalid
> combination are no longer sent at the requested rate (hwsim sent them at
> 6 Mbit/s), the others still are.
>
> Reported-by: Luka Gejak <luka.gejak@linux.dev>
> Closes: https://lore.kernel.org/linux-wireless/179610495595.388673.1196096326230618192.rtw88-v3-reply-1@linux.dev/
> Signed-off-by: Ahmet Zeren <niko3x@proton.me>
> ---
Looks good to me,
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Best regards,
Luka Gejak
prev parent reply other threads:[~2026-12-03 16:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 22:23 [PATCH wireless-next] wifi: mac80211: reject invalid VHT rate combinations in radiotap Ahmet Zeren via B4 Relay
2026-12-03 16:31 ` Luka Gejak [this message]
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=51316640d0350608a477885095297e08993c28a9@linux.dev \
--to=luka.gejak@linux.dev \
--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