mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Jouni Malinen <j@w1.fi>
Cc: Fedor Pchelkin <pchelkin@ispras.ru>,
	Vitaliy Shevtsov	 <v.shevtsov@mt-integration.ru>,
	lvc-project@linuxtesting.org,
	Michael Wu	 <flamingice@sourmilk.net>,
	linux-wireless@vger.kernel.org,
	"John W. Linville"	 <linville@tuxdriver.com>,
	linux-kernel@vger.kernel.org,
	 syzbot+2e5c1e55b9e5c28a3da7@syzkaller.appspotmail.com
Subject: Re: [lvc-project] [PATCH] wifi: nl80211: override all other flags if MONITOR_FLAG_COOK_FRAMES is set
Date: Mon, 03 Feb 2025 11:55:01 +0100	[thread overview]
Message-ID: <a4364fa59f65392d06bf6cd59d23d05feed624ca.camel@sipsolutions.net> (raw)
In-Reply-To: <Z6CdGnGnFJ8OuWyT@w1.fi>

On Mon, 2025-02-03 at 12:40 +0200, Jouni Malinen wrote:
> On Thu, Jan 30, 2025 at 10:13:14PM +0100, Johannes Berg wrote:
> > On Thu, 2025-01-30 at 22:23 +0300, Fedor Pchelkin wrote:
> > > Wouldn't it break existing userspace, especially in context of systems
> > > running old stable kernels where the patch is also needed?
> > > 
> > > There is still some usage of this flag in hostap [1].
> > 
> > Theoretically, but I just commented on that here:
> > 
> > https://lore.kernel.org/r/a49e58998553c45953a30243ad1957c06ce6db8c.camel@sipsolutions.net
> > 
> > tl;dr: only ancient hostapd versions will actually _use_ it, and they
> > have to fall into a relatively narrow range (April 2009 - Dec 2011.)
> 
> How did you determine that commit a11241fa1149 ("nl80211: Use nl80211
> for mgmt TX/RX in AP mode") ends this use? Support for monitor mode
> interface is still in hostap.git and it is even tested as part of the
> hwsim test cases.. Both hostapd and wpa_supplicant can still be
> configured to use the monitor interface.

Well, fair, there are perhaps certain explicit configurations where you
get monitor support, but by default as of that commit it should be
selecting the nl80211 path.

Though looking further, I suppose that in practice commit 73a3c6ffca0c
("nl80211: Use the monitor interface if socket tx status is not
supported") moves the date out a bit, albeit not related to upstream
kernels but only wifi backports to earlier upstream kernels.

> It would be another question to ask whether there is any good reason to
> use this anymore now that a better approach has been available for 13
> years and the answer to that is likely "no". Anyway, this is a kernel
> interface that has a user even in the current snapshot of user space
> programs. If we are about to break that use, it would make sense to
> first remove such users. I don't think I would really care about this
> anymore and it would be nice to get rid of all that unlikely to be used
> much, if at all, code.

Right.

> Though, this seems to imply that the case used by hostapd/wpa_supplicant
> would not be broken.

Not for this patch, no, but I did float the idea of removing it all
entirely.

johannes

      reply	other threads:[~2025-02-03 10:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-30 12:34 Vitaliy Shevtsov
2025-01-30 12:36 ` Johannes Berg
2025-01-30 19:23   ` [lvc-project] " Fedor Pchelkin
2025-01-30 21:13     ` Johannes Berg
2025-02-03 10:40       ` Jouni Malinen
2025-02-03 10:55         ` Johannes Berg [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=a4364fa59f65392d06bf6cd59d23d05feed624ca.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=flamingice@sourmilk.net \
    --cc=j@w1.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=lvc-project@linuxtesting.org \
    --cc=pchelkin@ispras.ru \
    --cc=syzbot+2e5c1e55b9e5c28a3da7@syzkaller.appspotmail.com \
    --cc=v.shevtsov@mt-integration.ru \
    /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

all inboxes | Powered by JetHome®