Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH v5 0/5] brcmfmac: add FT/OKC roaming offload support
@ 2026-08-21  7:56 Jason Huang
  2026-08-21  7:56 ` [PATCH v5 1/5] wifi: nl80211: add roam offload extended feature Jason Huang
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Jason Huang @ 2026-08-21  7:56 UTC (permalink / raw)
  To: linux-wireless
  Cc: johannes.berg, johannes, arend.vanspriel, hsin-hung.li,
	linux-kernel, brcm80211, brcm80211-dev-list.pdl,
	wlan-kernel-dev-list, jeff.johnson, Carella Chen

From: Carella Chen <carella.chen@infineon.com>

This series adds the cfg80211/nl80211 and brcmfmac pieces needed to
support firmware-assisted FT/OKC roaming offload.

Patch 1 adds an nl80211 extended feature bit so drivers can advertise
roaming PMK programming support without claiming full 802.1X 4-way
handshake offload. The brcmfmac patches then detect firmware FBT/OKC
capabilities, keep roaming-offload connections in a firmware-supplicant
profile state, program PMK material for FT/OKC roaming, report port
authorization after offloaded roaming, and advertise the new capability
when firmware support is present.

Changes in v5:
- Reworked nl80211_set_pmk() to avoid the 80-column checkpatch warning
  on the 4-way handshake extended-feature check.
- Added kernel-doc for the brcmfmac OKC profile state added by the PMK
  programming patch.
- Normalized Assisted-by trailers to the checkpatch-accepted
  AGENT_NAME:MODEL_VERSION format.
- Added Johannes and the wireless/brcm80211 lists to the cover letter
  Cc list for the nl80211 and brcmfmac changes.

Changes in v4:
- Resend the complete 5-patch series because v3 reached linux-wireless
  without patch 5/5.
- No code changes from v3.

Changes in v3:
- Send as a new standalone thread; v2 was accidentally posted once without
  patches and once as a reply to v1.
- Stop using deprecated NL80211_ATTR_PORT_AUTHORIZED and report
  authorization through cfg80211_port_authorized(), which emits
  NL80211_CMD_PORT_AUTHORIZED.
- Squash OKC PMK programming and firmware roaming supplicant mode into one
  brcmfmac patch.
- Clean up authorship/trailers for the squashed patch.

---
Carella Chen (3):
      wifi: nl80211: add roam offload extended feature
      wifi: brcmfmac: detect firmware FBT and OKC support
      wifi: brcmfmac: advertise firmware roam offload support

Darren Li (2):
      wifi: brcmfmac: add PMK programming for firmware roaming offload
      wifi: brcmfmac: report port authorization after offloaded roaming

 .../broadcom/brcm80211/brcmfmac/cfg80211.c         | 125 +++++++++++++++++++--
 .../broadcom/brcm80211/brcmfmac/cfg80211.h         |   5 +-
 .../wireless/broadcom/brcm80211/brcmfmac/feature.c |   2 +
 .../wireless/broadcom/brcm80211/brcmfmac/feature.h |   4 +-
 include/uapi/linux/nl80211.h                       |   4 +
 net/wireless/nl80211.c                             |   7 +-
 6 files changed, 132 insertions(+), 15 deletions(-)
---
base-commit: 6c5fc504d0d6934132637aa3db4b9b58148eaa78
change-id: 20260821-upstream-wireless-next-main-jason-11r-support-v1-0201e1f9c0e0

Best regards,
-- 
Jason Huang <jason.huang2@infineon.com>

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH v5 5/5] wifi: brcmfmac: advertise firmware roam offload support
@ 2026-08-24  2:19 Jason Huang
  0 siblings, 0 replies; 11+ messages in thread
From: Jason Huang @ 2026-08-24  2:19 UTC (permalink / raw)
  To: linux-wireless
  Cc: johannes.berg, johannes, arend.vanspriel, hsin-hung.li,
	linux-kernel, brcm80211, brcm80211-dev-list.pdl,
	wlan-kernel-dev-list, jeff.johnson, Carella Chen, Jason Huang

From: Carella Chen <carella.chen@infineon.com>

Advertise NL80211_EXT_FEATURE_ROAM_OFFLOAD only when firmware reports
FBT or OKC support. That lets userspace provide PMK material for
firmware roaming without enabling the path on devices that cannot
complete the offloaded roam.

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>
---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
index c11b3eac9d47..6a97be3149fc 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -7830,6 +7830,10 @@ static int brcmf_setup_wiphy(struct wiphy *wiphy, struct brcmf_if *ifp)
 	}
 	if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_SAE_EXT))
 		wiphy->features |= NL80211_FEATURE_SAE;
+	if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_FBT) ||
+	    brcmf_feat_is_enabled(ifp, BRCMF_FEAT_OKC))
+		wiphy_ext_feature_set(wiphy,
+				      NL80211_EXT_FEATURE_ROAM_OFFLOAD);
 	wiphy->mgmt_stypes = brcmf_txrx_stypes;
 	wiphy->max_remain_on_channel_duration = 5000;
 	if (brcmf_feat_is_enabled(ifp, BRCMF_FEAT_PNO)) {

-- 
2.25.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-08-24  3:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-21  7:56 [PATCH v5 0/5] brcmfmac: add FT/OKC roaming offload support Jason Huang
2026-08-21  7:56 ` [PATCH v5 1/5] wifi: nl80211: add roam offload extended feature Jason Huang
2026-08-22 18:36   ` Arend van Spriel
2026-08-21  7:56 ` [PATCH v5 2/5] wifi: brcmfmac: detect firmware FBT and OKC support Jason Huang
2026-08-21  7:56 ` [PATCH v5 3/5] wifi: brcmfmac: add PMK programming for firmware roaming offload Jason Huang
2026-08-21  7:56 ` [PATCH v5 4/5] wifi: brcmfmac: report port authorization after offloaded roaming Jason Huang
2026-08-22 18:24 ` [PATCH v5 0/5] brcmfmac: add FT/OKC roaming offload support Arend van Spriel
2026-08-22 18:26   ` Arend van Spriel
2026-08-24  3:08     ` HungTsung Huang
2026-08-24  2:27 ` [PATCH v5 5/5] wifi: brcmfmac: advertise firmware roam " Jason Huang
  -- strict thread matches above, loose matches on Subject: below --
2026-08-24  2:19 Jason Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox