From: Johannes Berg <johannes@sipsolutions.net>
To: Yannik Marchand <ymarchand@me.com>, linux-wireless@vger.kernel.org
Subject: Re: Receiving broadcast data frames in AP mode
Date: Tue, 17 Feb 2026 17:09:58 +0100 [thread overview]
Message-ID: <603c2396a4eca2601ae60cd09638b6ad5e63ff75.camel@sipsolutions.net> (raw)
In-Reply-To: <7ce3efae-ad08-4fe4-b3c3-f1340c213a22@me.com>
On Tue, 2026-02-17 at 15:56 +0100, Yannik Marchand wrote:
> > I actually have a Switch 2 now, so I guess I could theoretically try
> > out some of these things - though I don't have a lot of real WiFi
> > hardware.
>
> That's cool! I didn't know that you are interested in Nintendo games.
Hah, not all that much, my kids more :-P
> I am running most of my experiments with an ALFA AWUS036ACM currently,
> because my old laptop had an Intel chip, which (as you mentioned)
> filtered out too much. My new laptop has a MediaTek chip, which seems to
> work mostly fine. So, whether you need "real WiFi hardware" probably
> depends on what you currently have.
Yeah guess that depends on how much filtering there is in the (lower)
MAC.
> > Have you heard of Ferris on Air?
>
> I didn't know about FoA. Currently, I don't really have the time to port
> my implementation to a different stack, but it might be interesting if
> we run into more issues later on.
Sure, was just thinking that has pretty low-level access, so could be
easy, and having it interop with an esp32 might be interesting. Also,
they've said they might want to support the esp32 as a wifi NIC for
Linux.
> > This is ... odd. Is there encryption? I can't imagine why they'd throw
> > away non-broadcast packets.
>
> Yes, all data frames are encrypted with CCMP with a key that is derived
> from information in the action frame. The interesting part is that the
> first few packets do arrive at the Nintendo Switch, which makes me
> believe that my encryption algorithm is correct. After I found that
> using the broadcast address solved the problem, I have not investigated
> the issue any further.
Sounds odd. Maybe some PN issue? But I guess would need some more debug.
> > That sounds pretty awkward!
> >
> > ...
> >
> > So there really is no good default mode to implement this in, and
> > while we could add a "nintendo mode" to the kernel, it'd be unlikely
> > that hardware/firmware implements it?
>
> It was quite difficult indeed :)
>
> The biggest issue has really been the filtering, namely:
> * Dropping broadcast action frames in station mode while being
> associated with an AP.
> * Dropping broadcast data frames in AP mode.
> * Dropping association frames in IBSS mode.
>
> The first issue seems to affect mostly Intel hardware, while the other
> two issues affect all my hardware.
Right.
> Of course, it would be nice if this could be solved in the kernel, but
> I'm personally not familiar enough to judge whether this is possible, or
> whether it would require support from the hardware vendor.
The *kernel* would be doable, but a lot of this is likely even happening
in (lower) MAC firmware, depending on the device. Certainly for Intel
devices.
In some devices maybe broadcast data frames are seen in AP mode, and
then we could just not drop them in the kernel? Or introduce a Nintendo-
AP mode or something, but like I said, the bigger issue is FW support.
Though having such a mode would also allow drivers to advertise "this
works".
johannes
prev parent reply other threads:[~2026-02-17 16:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-02 14:52 Receiving broadcast data frames in AP mode Yannik Marchand
2025-10-07 9:47 ` Johannes Berg
[not found] ` <c09802fb-bde5-4775-bb24-69f465c638be@me.com>
2026-02-13 16:30 ` Yannik Marchand
[not found] ` <bb63abe8c61a02afd67921934e15c6a943a12fba.camel@sipsolutions.net>
2026-02-17 14:56 ` Yannik Marchand
2026-02-17 16:09 ` 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=603c2396a4eca2601ae60cd09638b6ad5e63ff75.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=ymarchand@me.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