From: Jason Huang <Jason.Huang2@infineon.com>
To: <linux-wireless@vger.kernel.org>
Cc: Jason Huang <jason.huang2@infineon.com>,
Carella Chen <carella.chen@infineon.com>,
Johannes Berg <johannes@sipsolutions.net>,
<linux-kernel@vger.kernel.org>
Subject: [PATCH 2/7] wifi: nl80211: add roam offload extended feature
Date: Tue, 4 Aug 2026 11:04:49 +0800 [thread overview]
Message-ID: <20260804030450.232028-2-Jason.Huang2@infineon.com> (raw)
In-Reply-To: <20260804030450.232028-1-Jason.Huang2@infineon.com>
From: Jason Huang <jason.huang2@infineon.com>
Drivers can offload FT or OKC roaming without necessarily
advertising full 802.1X 4-way handshake offload. Add an extended
feature bit for that capability and allow PMK configuration when it is
present.
This gives userspace a way to provide PMK or PMK-R0 material needed
by firmware roaming implementations while keeping the existing 4-way
handshake offload capability unchanged.
Assisted-by: GitHub Copilot CLI:gpt-5.5
Signed-off-by: Carella Chen <carella.chen@infineon.com>
Signed-off-by: Jason Huang <jason.huang2@infineon.com>
---
include/uapi/linux/nl80211.h | 4 ++++
net/wireless/nl80211.c | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 66b4cfd8de86..2b96a18def9b 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -7112,6 +7112,9 @@ enum nl80211_feature_flags {
* @NL80211_EXT_FEATURE_PROBE_AP: Driver supports probing the associated AP
* in STA mode using @NL80211_CMD_PROBE_PEER.
*
+ * @NL80211_EXT_FEATURE_ROAM_OFFLOAD: Driver supports Fast Transition or
+ * Opportunistic Key Caching roaming offload in station mode.
+ *
* @NUM_NL80211_EXT_FEATURES: number of extended features.
* @MAX_NL80211_EXT_FEATURES: highest extended feature index.
*/
@@ -7194,6 +7197,7 @@ enum nl80211_ext_feature_index {
NL80211_EXT_FEATURE_ROC_ADDR_FILTER,
NL80211_EXT_FEATURE_SET_KEY_LTF_SEED,
NL80211_EXT_FEATURE_PROBE_AP,
+ NL80211_EXT_FEATURE_ROAM_OFFLOAD,
/* add new features before the definition below */
NUM_NL80211_EXT_FEATURES,
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 55161ddb56b4..7dbd4caf2609 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -18443,7 +18443,9 @@ static int nl80211_set_pmk(struct sk_buff *skb, struct genl_info *info)
return -EOPNOTSUPP;
if (!wiphy_ext_feature_isset(&rdev->wiphy,
- NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X))
+ NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X) &&
+ !wiphy_ext_feature_isset(&rdev->wiphy,
+ NL80211_EXT_FEATURE_ROAM_OFFLOAD))
return -EOPNOTSUPP;
if (!info->attrs[NL80211_ATTR_MAC] || !info->attrs[NL80211_ATTR_PMK])
--
2.25.1
next prev parent reply other threads:[~2026-08-04 3:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 3:04 [PATCH 1/7] wifi: cfg80211: report authorized connect and roam events Jason Huang
2026-08-04 3:04 ` Jason Huang [this message]
2026-08-04 6:43 ` Johannes Berg
2026-08-05 11:01 ` [PATCH v2 0/2] wifi: support authorized roaming offload reporting Jason Huang
2026-08-05 11:01 ` [PATCH v2 1/2] wifi: cfg80211: report authorized connect and roam events Jason Huang
2026-08-05 22:50 ` Jeff Johnson
2026-08-06 4:03 ` HungTsung Huang
2026-08-05 11:01 ` [PATCH v2 2/2] wifi: nl80211: add roam offload extended feature Jason Huang
2026-08-05 22:22 ` [PATCH v2 0/2] wifi: support authorized roaming offload reporting Jeff Johnson
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=20260804030450.232028-2-Jason.Huang2@infineon.com \
--to=jason.huang2@infineon.com \
--cc=carella.chen@infineon.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--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