mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Pooventhiran G <pooventhiran.g@oss.qualcomm.com>,
	Kees Cook <kees@kernel.org>,
	"Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	 linux-hardening@vger.kernel.org
Subject: Re: [PATCH wireless-next v2 10/16] wifi: nl80211: Define attributes to pack SMD BSS Transition context
Date: Thu, 01 Oct 2026 22:19:22 +0200	[thread overview]
Message-ID: <d1f53a596835f79580b2078a83820d98d795ae17.camel@sipsolutions.net> (raw)
In-Reply-To: <20260924-smd-v2-10-bb40094da1d4@oss.qualcomm.com>

On Thu, 2026-09-24 at 08:10 +0530, Pooventhiran G wrote:
> Define nl80211 attributes and policies required to pack SMD BSS Transition
> context along with NL80211_CMD_FRAME to be sent to userspace, and to set
> and get the context during roaming via current AP MLD and roaming via
> target AP MLD. Without these, userspace will not be able to transport the
> context to the target AP MLD, program the context on the target AP MLD TX
> and RX queues, nor fetch the context on behalf of the target AP MLD if
> the ST Execution frame is sent directly to the target.

The commit subject and message don't really seem right - you're also
adding all the commands.

> + * @NL80211_CMD_SET_SMD_CTX: Set the SMD BSS Transition dynamic context for a
> + *	non-AP MLD sent from the current AP MLD on the target AP MLD managed by
> + *	an SMD-ME. This command carries %NL80211_ATTR_MLD_ADDR,
> + *	%NL80211_ATTR_SMD_CTX_TYPE and %NL80211_ATTR_SMD_CTX.

This is a bit ... brief. Incomplete, I'd even say. How is it meant to
work, e.g. this carries PN data which fundamentally maps to a key, so it
seems the key must be there before it. Surely the station must be, and
it must be in the right state (whichever that is) etc.

> + * @NL80211_CMD_GET_SMD_CTX: Get the SMD BSS Transition dynamic context for a
> + *	non-AP MLD associated to an AP MLD managed by an SMD-ME. This command
> + *	carries %NL80211_ATTR_MLD_ADDR and %NL80211_ATTR_SMD_CTX_TYPE.
> + * @NL80211_CMD_SMD_CTX_EVENT: Event reporting the collected SMD context
> + *	(requested via %NL80211_CMD_GET_SMD_CTX) to userspace. It carries
> + *	%NL80211_ATTR_MLD_ADDR, %NL80211_ATTR_SMD_CTX_TYPE, and
> + *	%NL80211_ATTR_SMD_CTX.

Why would this be async?

> + * @NL80211_SMD_CTX_ATTR_DRV_DATA: Optional (binary) driver-specific blob.
> + *	Passed through nl80211 as a blob; parsed only at the driver layer of
> + *	the current AP MLD and target AP MLD. First 3 bytes shall be driver OUI
> + *	for the driver to parse as required.

That's just a vendor command through the back-door?

What do you envision this carries, and why couldn't that be defined
properly? Is the intent to have some kind of optional data there, or
would the target possibly refuse the operation if it's not present?

johannes

  reply	other threads:[~2026-10-01 20:19 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24  2:40 [PATCH wireless-next v2 00/16] wifi: Add Seamless Mobility Domain (SMD) AP support Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 01/16] wifi: nl80211: Define Seamless Mobility Domain (SMD) device capability Pooventhiran G
2026-10-02  6:41   ` Johannes Berg
2026-10-05 16:01     ` Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 02/16] wifi: nl80211: Add kernel interfaces for Seamless Mobility Domain setup Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 03/16] wifi: cfg80211/mac80211: Configure AP with SMD capabilities Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 04/16] wifi: cfg80211/mac80211: Parse SMD parameters in STA addition/modification Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 05/16] wifi: nl80211/cfg80211: Indicate STA creation via SMD BSS Transition Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 06/16] wifi: nl80211/mac80211: Add SMD BSS Transition sub-state STA flags Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 07/16] wifi: mac80211: Add driver_op for SMD substate changes Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 08/16] wifi: mac80211: Send BlockAck policy in AMPDU action Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 09/16] wifi: mac80211: Define layouts for SMD BSS Transition context Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 10/16] wifi: nl80211: Define attributes to pack " Pooventhiran G
2026-10-01 20:19   ` Johannes Berg [this message]
2026-09-24  2:40 ` [PATCH wireless-next v2 11/16] wifi: cfg80211/mac80211: Handle UHR Link Reconfiguration frame Pooventhiran G
2026-10-04 10:23   ` Johannes Berg
2026-10-05 16:16     ` Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 12/16] wifi: nl80211: Pack SMD dynamic context along with frame Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 13/16] wifi: nl80211/cfg80211: Add support for SMD context programming Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 14/16] wifi: mac80211: Add mac80211 support to handle NL80211_CMD_SET_SMD_CTX Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 15/16] wifi: nl80211/cfg80211: Add support for querying SMD context for target AP MLD Pooventhiran G
2026-09-24  2:40 ` [PATCH wireless-next v2 16/16] wifi: mac80211: Add mac80211 support to handle NL80211_CMD_GET_SMD_CTX Pooventhiran G

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=d1f53a596835f79580b2078a83820d98d795ae17.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=gustavoars@kernel.org \
    --cc=kees@kernel.org \
    --cc=linux-hardening@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pooventhiran.g@oss.qualcomm.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

all inboxes | Powered by JetHome®