linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Veerendranath Jakkam <vjakkam@codeaurora.org>
To: johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH] nl80211: Indicate SA Query procedures offload for AP SME device
Date: Thu, 14 Oct 2021 16:48:51 +0530	[thread overview]
Message-ID: <1634210331-9001-1-git-send-email-vjakkam@codeaurora.org> (raw)

Add AP SME device feature flag to advertise that the SA Query procedures
are handled in driver.

If this flag is advertised SA Query request or response frames from peers
are not reported to userspace. Thus userspace components shall skip SA
Query specific validations.

Ex: When AP started with Operating Channel Validation(OCV) support and
channel switch occurs, hostapd starts SA Query timer for OCV enabled
STAs. Hostapd sends deauth to the STAs which didn't send SA Query
request before timeout, Hostapd can skip such validations when this flag
advertised.

Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
---
 include/uapi/linux/nl80211.h | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index eda608b..99746aa 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -5735,13 +5735,17 @@ enum nl80211_tdls_operation {
 	NL80211_TDLS_DISABLE_LINK,
 };
 
-/*
+/**
  * enum nl80211_ap_sme_features - device-integrated AP features
- * Reserved for future use, no bits are defined in
- * NL80211_ATTR_DEVICE_AP_SME yet.
+ * @NL80211_DEVICE_AP_SME_SA_QUERY_OFFLOAD: Driver handles SA Query procedures.
+ *	If this flag is advertised by the driver, SA Query request/response
+ *	frames are handled within the driver and won't be reported to userspace.
+ *	Userspace shall skip SA Query specific validations if the driver is
+ *	advertizing this capability.
+ */
 enum nl80211_ap_sme_features {
+	NL80211_DEVICE_AP_SME_SA_QUERY_OFFLOAD		= 1 << 0,
 };
- */
 
 /**
  * enum nl80211_feature_flags - device/driver features
-- 
2.7.4


             reply	other threads:[~2021-10-14 11:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-14 11:18 Veerendranath Jakkam [this message]
2021-10-21 15:32 ` [PATCH] nl80211: Indicate SA Query procedures offload for AP SME device Johannes Berg
2021-10-22 13:26   ` vjakkam
2021-10-22 13:29     ` Johannes Berg
2021-10-25  8:27       ` vjakkam
2021-10-25  8:28         ` Johannes Berg
2021-11-22  6:11           ` vjakkam
2021-11-26  7:25 ` [PATCH 1/2] nl80211: Add support to set AP settings flags with single attribute Veerendranath Jakkam
2021-11-26  7:25   ` [PATCH 2/2] nl80211: Add support to offload SA Query procedures for AP SME device Veerendranath Jakkam

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=1634210331-9001-1-git-send-email-vjakkam@codeaurora.org \
    --to=vjakkam@codeaurora.org \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).