Linux brcm80211 wireless device drivers
 help / color / mirror / Atom feed
From: Gokul Sivakumar <gokulkumar.sivakumar@infineon.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Arend van Spriel <arend.vanspriel@broadcom.com>,
	Ajay Singh <ajay.kathat@microchip.com>,
	Claudiu Beznea <claudiu.beznea@tuxon.dev>,
	<linux-wireless@vger.kernel.org>, <brcm80211@lists.linux.dev>,
	<wlan-kernel-dev-list@infineon.com>,
	Gokul Sivakumar <gokulkumar.sivakumar@infineon.com>
Subject: Re: [PATCH wireless-next v2 0/5] wifi: cfg80211: Add support to indicate changed AP BSS parameters to drivers
Date: Tue, 3 Jun 2025 17:42:22 +0530	[thread overview]
Message-ID: <aD7mpkhmQXuN9tMT@ISCN5CG14747PP.infineon.com> (raw)
In-Reply-To: <e36c8a9149f85383b4f3e8793381842088853dbe.camel@sipsolutions.net>

On 06/03, Johannes Berg wrote:
> On Tue, 2025-06-03 at 16:02 +0530, Gokul Sivakumar wrote:
> > In cfg80211, added provision for the drivers which registers the callback
> > .change_bss() cfg80211_ops, to find which set of AP BSS params are changed
> > by the userpsace in the SET_BSS operation. With this the drivers can decide
> > to reject the operation if any of the changed AP BSS param is not supported
> > for explicit configuration. This helps ensuring that the driver does not
> > partially handle the AP BSS params and avoid misleading the userspace that
> > the SET_BSS operation is fully successful.
> >
> > Also introduced the "changed" bitmask check in all the drivers that are
> > currently registering to .change_bss() cfg80211_ops. This would make the
> > condition for handling SET_BSS operation equally stirct across all drivers.
> >
> 
> Oh, nice! I'll have to look at it in more detail later, but one thing I
> saw now is in patch 2 you have this:
> 
> > In AP mode, the "ap_isolate" value from the cfg80211 layer represents,
> >  0 = allow low-level bridging of frames between associated stations
> >  1 = restrict low-level bridging of frames to isolate associated stations
> > -1 = do not change existing setting
> 
> Is that -1 still true? Seems like now it should just be that
> CFG80211_BSS_PARAM_CHANGED_AP_ISOLATE isn't set and then you don't touch
> it?
> 

Apologies for the HTML content in my earlier reply which got rejected by
the mailing list.

Kindly note that the driver is rejecting the SET_BSS operation if an
unsupported AP BSS param is passed by userspace, while the opposite is not
true. ie. the operation would not be rejected by the driver, when a
supported AP BSS param is not passed by the userspace.

So yes, the significance of "-1" still holds true, because if suppose the
userspace skipped this param in the SET_BSS request, the driver when
receiving the request will have the ap_isolate param with the default
value "-1". The driver is checking if the param value is >=0 before
proceeding with handling it. And will ignore the param, only if it is -1.

Gokul

  reply	other threads:[~2025-06-03 12:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-03 10:32 [PATCH wireless-next v2 0/5] wifi: cfg80211: Add support to indicate changed AP BSS parameters to drivers Gokul Sivakumar
2025-06-03 10:32 ` [PATCH wireless-next v2 1/5] wifi: cfg80211: Add support to indicate changed AP BSS parameters to driver Gokul Sivakumar
2025-06-03 10:32 ` [PATCH wireless-next v2 2/5] wifi: brcmfmac: support AP isolation to restrict reachability between stations Gokul Sivakumar
2025-06-03 10:32 ` [PATCH wireless-next v2 3/5] wifi: wil6210: reject SET_BSS if any changed AP BSS param is not supported Gokul Sivakumar
2025-06-03 10:32 ` [PATCH wireless-next v2 4/5] wifi: wilc1000: " Gokul Sivakumar
2025-06-03 10:32 ` [PATCH wireless-next v2 5/5] wifi: mac80211: " Gokul Sivakumar
2025-06-03 10:56 ` [PATCH wireless-next v2 0/5] wifi: cfg80211: Add support to indicate changed AP BSS parameters to drivers Johannes Berg
2025-06-03 12:12   ` Gokul Sivakumar [this message]
2025-06-03 12:29     ` Johannes Berg
2025-06-03 13:17       ` Arend Van Spriel
2025-06-03 14:07         ` Gokul Sivakumar

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=aD7mpkhmQXuN9tMT@ISCN5CG14747PP.infineon.com \
    --to=gokulkumar.sivakumar@infineon.com \
    --cc=ajay.kathat@microchip.com \
    --cc=arend.vanspriel@broadcom.com \
    --cc=brcm80211@lists.linux.dev \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=wlan-kernel-dev-list@infineon.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