public inbox for linux-kernel-mentees@lists.linux-foundation.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Moonhee Lee <moonhee.lee.ca@gmail.com>,
	Nicolas Escande <nico.escande@gmail.com>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	 linux-kernel-mentees@lists.linux.dev,
	 syzbot+ededba317ddeca8b3f08@syzkaller.appspotmail.com
Subject: Re: [PATCH wireless-next] wifi: mac80211: reject VHT opmode for unsupported channel widths
Date: Thu, 03 Jul 2025 17:09:45 +0200	[thread overview]
Message-ID: <1f13328a55c54fb49d8ca1dd72bc5de23f161ac8.camel@sipsolutions.net> (raw)
In-Reply-To: <CAF3JpA7wM4JBdd6OvGS+hmv0UahcW=h4HrPNDwRNhduk8iKsWw@mail.gmail.com> (sfid-20250703_110226_928227_85F0E8E1)

On Thu, 2025-07-03 at 02:02 -0700, Moonhee Lee wrote:
> Hi Nicolas,
> 
> On Thu, Jul 3, 2025 at 1:12 AM Nicolas Escande <nico.escande@gmail.com> wrote:
> 
> > Is this really specific for VHT ? or for HE /EHT as well ?
> > 
> > > +             switch (width) {
> > > +             case NL80211_CHAN_WIDTH_20_NOHT:
> > Because this seems weird for VHT
> > > +             case NL80211_CHAN_WIDTH_320:
> > And this did not exist for VHT either

Yes, but see below.

> 
> Thanks for the feedback. The intention was to handle VHT opmode notifications,
> as noted in the commit message, but the check incorrectly included widths that
> are not valid for VHT, such as 20_NOHT and 320. I will update v2 to reject any
> invalid widths, not just 5 or 10 MHz, and restrict the check to the valid set
> for VHT: 20, 40, 80, 160, and 80+80.

I'm not entirely sure that'd be correct. 320 MHz can only be used on the
6 GHz band, so clients must be at least HE, but I'm not sure that VHT
opmode notification frames are completely illegal for them, even if
they'd like use OMI instead.

How did syzbot even manage to get a 10 MHz thing running though?

johannes

  reply	other threads:[~2025-07-03 15:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-02  6:59 [PATCH wireless-next] wifi: mac80211: reject VHT opmode for unsupported channel widths Moon Hee Lee
2025-07-03  8:12 ` Nicolas Escande
2025-07-03  9:02   ` Moonhee Lee
2025-07-03 15:09     ` Johannes Berg [this message]
2025-07-03 15:11       ` Johannes Berg
2025-07-03 16:35         ` Moonhee Lee
2025-07-03 16:54           ` Johannes Berg
2025-07-03 18:45             ` Moonhee Lee

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=1f13328a55c54fb49d8ca1dd72bc5de23f161ac8.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-kernel-mentees@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=moonhee.lee.ca@gmail.com \
    --cc=nico.escande@gmail.com \
    --cc=syzbot+ededba317ddeca8b3f08@syzkaller.appspotmail.com \
    /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