Linux wireless drivers development
 help / color / mirror / Atom feed
From: Christopher Hill <ch6574@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "Miroslav Rýzek" <miroslav.ryzek@gmail.com>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH wireless RESEND] wifi: mac80211: apply ap_isolate to AP_VLAN stations
Date: Tue, 24 Nov 2026 18:58:35 -0500	[thread overview]
Message-ID: <E0FB2764-EE62-4DA5-8136-77F15EC22D11@gmail.com> (raw)
In-Reply-To: <a915638f7d6a4a1fbf5b510743ceac8f88cd8a18.camel@sipsolutions.net>


> On Nov 24, 2026, at 09:16, Johannes Berg <johannes@sipsolutions.net> wrote:
> 
> Why would we want to not have this separated per interface?

Hi Johannes,

I made it BSS-wide because that is all userspace can express today:
nl80211 only accepts SET_BSS (and so ap_isolate) on AP and P2P GO
interfaces, ieee80211_change_bss() needs the AP's beacon, and hostapd
sets ap_isolate once per BSS. An AP_VLAN can't get a value of its own,
so a per-VLAN flag would only be a copy of the AP's value. Note that
multicast_to_unicast is handled the same way.

I can read "per interface" two ways, so here is roughly what each would
cost: 

1. Keep the flag in each sdata, and have an AP_VLAN take the AP's value
   when it is opened and when ap_isolate changes, like control_port_*
   in ieee80211_do_open(). Nothing changes for userspace, and debugfs
   flags keeps showing it per interface. I have this as a prototype:
   12 lines of change in cfg.c and iface.c. It builds, but I have not
   run it on real hardware yet (I would test it before sending a v2).

2. Let userspace set it per AP_VLAN. In the kernel that means allowing
   SET_BSS(ap_isolate) on an AP_VLAN in nl80211, an AP_VLAN path in
   ieee80211_change_bss(), and a rule for whether a later change on the
   AP overrides a VLAN's own value: about 40-60 lines. hostapd would
   also have to configure and apply it per VLAN (roughly 100-200 lines,
   a new VLAN file option, and a fallback for kernels without it), so it
   would only help once both are released.

I would send 1 as a v2, since it fixes the bug without touching any
UAPI, and treat 2 as a separate series if you want it. Which one did
you have in mind?

Thanks,
Chris

      reply	other threads:[~2026-11-24 23:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 23:53 [PATCH wireless RESEND] wifi: mac80211: apply ap_isolate to AP_VLAN stations Miroslav Rýzek
2026-11-24 14:16 ` Johannes Berg
2026-11-24 23:58   ` Christopher Hill [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=E0FB2764-EE62-4DA5-8136-77F15EC22D11@gmail.com \
    --to=ch6574@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=miroslav.ryzek@gmail.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