From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796290572; b=iLtGHoZdNK2scxxlGBqgKLgeUaL+ZhdDGlE4ed8kxsxQD1Pz2QTHHoZYQorm/StQP/aP 9TVzTLloUQKNbNlbZ2G0u7pjkt4rT/PiffJDolXxYd8aSmuz6Eu5Kd3+At6MzDltcD/D6 jUgujgAHbdr3gtz9bQRw6gXUXYoDssGbLc/mfsVDw4/z8bS5g0Jl4P+IwG/wbugPvVudC oqGg3VFZJZJqpznsCYjuseyhOh+nZRbRDW2ilIZTu/+MA+d7Wl+9x1H6U5Oicmy0Abl+w lwN7YMdBrxs6K9P6Zo6ls6+qSwLclQeJofFs2cLyx2LNTbW8SX6fYwx+bjeT/lXmplg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796290572; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=MupG+xm9D793PNZZcVHAFun+ZjF7icvpkW1w6WSGooU=; b=pU1DstFliqQtPLrqevDR7BY1KVw9nZIi2eq/Av5XFKBqxA2V7QYzixic3wmKImKNVmuq A7+seZehwXcIPp0h7coiziNVxVMdsJMtM0sg/nYjt31V1XoayNy6u2txKbJ8pzDrpm/Hd 4QB3+TkmRSaTDFPdWBVW42PF+9Qn97ZrneonVrxW0xabZIpokidAK/+Ypv4IdZ1Fz5On7 Fa1ewIO0uad8fFm/dGGDEhwFTYUPe69VaPPdEpdAeM5oWKMWSluQsR/Kx/RV5Qc4MZ7kY P3oRs/0eXctN0w0AkrU90KfxrgLm1EyDkeCzvB+U5Lb330pg8cbwzc6TE5n9ZjW4Fig== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b="M7Dkg0/P"; arc=none smtp.remote-ip=192.198.163.10 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B7BD606A32C for ; Thu, 3 Dec 2026 09:36:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0B7BD606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=M7Dkg0/P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796290571; x=1827826571; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=MupG+xm9D793PNZZcVHAFun+ZjF7icvpkW1w6WSGooU=; b=M7Dkg0/PeA1NzGsn4YzasMLFyeF35o535OLI+Tp7AbIiPHObXFPVoC+n On4tqIWA+nV16Ak+4awdOIqPBtKqAzhYWpbb4oP/TyStMnuNX7DQoXQoO CwscI4HPNPFPIrNtHSQWjRo0iQkHSxqn0ecz67bYsyXE26q8ECrb6nWia 6ukRaTozAE/ql3GhzQ+w5zQNZngLR/jM59V3UUDKeGuqrvetLRLPx3OlY WsP96n/UsgTo92KhQvHsDbvR936D/WcSK0kZANi+p8dWV4oiAn3H9hdru MpubPrATitSBm0gDXDMixdb4tJOF6BOpYlItrt97JhAfbbWmBe5YPuy7s Q==; X-CSE-ConnectionGUID: e/QBN6SpSxqsxXOOpRalJg== X-CSE-MsgGUID: kTOIYcidQgWpfK4avexQlQ== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5131973" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5131973" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 01:35:53 -0800 X-CSE-ConnectionGUID: J5B6asKARQOfUGC2XSpXww== X-CSE-MsgGUID: yvAD9D8UTK2QfNEgkPdd7Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="13796000" Received: from weis0041.iil.intel.com ([10.12.217.187]) by orviesa007.jf.intel.com with ESMTP; 03 Dec 2026 01:35:52 -0800 From: Ilan Peer To: linux-wireless@vger.kernel.org Cc: Ilan Peer Subject: [PATCH 1/2] wifi: cfg80211: allow auth data and EPP peer with FT authentication Date: Thu, 3 Dec 2026 11:34:07 +0200 Message-ID: <20261203093408.1545010-1-ilan.peer@intel.com> X-Mailer: git-send-email 2.55.0 X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Allow NL80211_ATTR_AUTH_DATA with FT authentication. The first FT message with the PQC AKM carries the PQC Parameter element, which is an Extended Length element and is therefore rejected in NL80211_ATTR_IE. In addition, allow NL80211_ATTR_EPP_PEER with FT authentication to indicate that the reassociation following it is encrypted. This requires the driver to support NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION. Signed-off-by: Ilan Peer --- include/net/cfg80211.h | 3 +++ include/uapi/linux/nl80211.h | 15 +++++++++------ net/wireless/nl80211.c | 14 +++++++++++++- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index c166f97dcf81..7ab99507724a 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -3347,6 +3347,8 @@ static inline const u8 *ieee80211_bss_get_ie(struct cfg80211_bss *bss, u8 id) * given an MLD address) by the driver * @ap_mld_addr: AP MLD address in case of authentication request with * an AP MLD, valid iff @link_id >= 0 + * @epp_peer: the AP is an EPP peer and the (re)association following the + * FT authentication is encrypted */ struct cfg80211_auth_request { struct cfg80211_bss *bss; @@ -3362,6 +3364,7 @@ struct cfg80211_auth_request { size_t auth_data_len; s8 link_id; const u8 *ap_mld_addr; + bool epp_peer; }; /** diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index 439a08654274..5373a1422883 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -2460,11 +2460,12 @@ enum nl80211_commands { * excluding the Authentication algorithm number, i.e., starting at the * Authentication transaction sequence number field. It is used with * authentication algorithms that need special fields to be added into - * the frames (SAE and FILS). Currently, only the SAE cases use the - * initial two fields (Authentication transaction sequence number and - * Status code). However, those fields are included in the attribute data - * for all authentication algorithms to keep the attribute definition - * consistent. + * the frames (SAE and FILS) or that carry Extended Length elements + * (e.g., the PQC Parameter element with FT). Currently, only the SAE + * cases use the initial two fields (Authentication transaction sequence + * number and Status code). However, those fields are included in the + * attribute data for all authentication algorithms to keep the attribute + * definition consistent. * * @NL80211_ATTR_VHT_CAPABILITY: VHT Capability information element (from * association request when used with NL80211_CMD_NEW_STATION) @@ -3201,7 +3202,9 @@ enum nl80211_commands { * the 1 MHz primary subchannel within that 2 MHz primary. * * @NL80211_ATTR_EPP_PEER: A flag attribute to indicate if the peer is an EPP - * STA. Used with %NL80211_CMD_NEW_STA and %NL80211_CMD_ADD_LINK_STA + * STA. Used with %NL80211_CMD_NEW_STA and %NL80211_CMD_ADD_LINK_STA. Also + * used with %NL80211_CMD_AUTHENTICATE for FT authentication to indicate + * that the following reassociation is encrypted. * * @NL80211_ATTR_UHR_CAPABILITY: UHR Capability information element (from * association request when used with NL80211_CMD_NEW_STATION). Can be set diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 8a5c9dd9d0db..7912624728fd 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -13414,7 +13414,8 @@ static int nl80211_authenticate(struct sk_buff *skb, struct genl_info *info) auth_type != NL80211_AUTHTYPE_FILS_SK_PFS && auth_type != NL80211_AUTHTYPE_FILS_PK && auth_type != NL80211_AUTHTYPE_EPPKE && - auth_type != NL80211_AUTHTYPE_IEEE8021X) + auth_type != NL80211_AUTHTYPE_IEEE8021X && + auth_type != NL80211_AUTHTYPE_FT) return -EINVAL; req.auth_data = nla_data(info->attrs[NL80211_ATTR_AUTH_DATA]); req.auth_data_len = nla_len(info->attrs[NL80211_ATTR_AUTH_DATA]); @@ -13429,6 +13430,17 @@ static int nl80211_authenticate(struct sk_buff *skb, struct genl_info *info) if (local_state_change) return 0; + if (info->attrs[NL80211_ATTR_EPP_PEER]) { + if (auth_type != NL80211_AUTHTYPE_FT) + return -EINVAL; + + if (!wiphy_ext_feature_isset(&rdev->wiphy, + NL80211_EXT_FEATURE_ASSOC_FRAME_ENCRYPTION)) + return -EOPNOTSUPP; + + req.epp_peer = true; + } + req.auth_type = auth_type; req.key = key.p.key; req.key_len = key.p.key_len; -- 2.55.0