From patchwork Thu Sep 10 11:20:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brent W X-Patchwork-Id: 2302226 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Ukw+ueq5; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=H8wKIBD4; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hgrGk3nxwz1xw1 for ; Fri, 11 Sep 2026 07:22:06 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=H1aGeQ1ciRKSY2BieGtP99fbwxVymEgsj9/PFkXPwBk=; b=Ukw +ueq5vOvSHnX0ayQnk7vjnAqEI+x1AU/yKIRG14eRZaJ3Fc//GNw4fLWGJ/T4YcSyXGwSRmurspkw QbegascXRj9p+eUjRpIyiTWr0EadMgdp28Xmu/9m1qnJVwMxz0LWA6RJlvgtN0aO1B61MqOZl9iGd c+JgLzvVMCqy9ZvLmVXU44nfrfM5hmVbt6uMz/BZkRvChXjLufPD0fbKkCqzS7FH6w+JicbLOICK9 qRliEVFUtpdwvwgpnceQTc7fCYabMAvlZRWD3wK43j1KD68t+Gydzg18ELlknojPSHA0f3dUSkbxL Lmwpx3SwP2woW3qmvGZAsjgomHA95rA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x4mC8-0000000FPZv-3BHp; Thu, 10 Sep 2026 21:20:32 +0000 Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x4mC4-0000000FPZV-2pUu for hostap@lists.infradead.org; Thu, 10 Sep 2026 21:20:29 +0000 Received: by mail-vs1-xe2e.google.com with SMTP id ada2fe7eead31-7466771f1caso52833137.0 for ; Thu, 10 Sep 2026 14:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1789075227; cv=none; d=google.com; s=arc-20260327; b=M7014QF9u37piOhxG4sx7PQIiSg0D09/3Kz9sTQuePIVCh6NhBQj2tEmXM35t6dSKN 1LBTPigPF4L+8/LdBm6vELToXZ3pRY6zJAopP7JyraYeb9WHqy8ixDqlgrQafWO/+yRd JugFRckGhEwRs9rljWMDQSTScot1saRQdkccy4HscTLFeFy6+QW0f6sAMvU5egYD71qu DCHY29fgO26NJPp2pxD6bPk9KzhsYFID3+nIpC384sVt5CmSyw7lxmQTROJHZV8YL5b2 /DD1qvM1PHE+UmYaaSZO8ONtUx6x6V2vwowCpbrBx2coOGcY82rSNot2hOgM2TJM2uHL YRHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=itz9h0NX52GQKHOOQjTGutRQjTAUcUFCUa7GThbT2j8=; fh=RepBDIVbUTRsjfbrO/5AjcaOU1JdnBduCNdRP0Vpu7Q=; b=SoZeWO9xfMdtgNMFeltSqjAJoYkNoiFOcvseKOTYJXITgL6n+tDOdYDbWxB1zm6LS2 RxX/vx6ReuGDrYw8Ppl8eSUcTQGn67GpbriuwMF/MLsGk7yHsSs8myEpE7x4UJDeHHCx vwtxdLAbTMTrhYYoRcIovbmalZnZI2+kkQEh3FoyhKZuIrUWma+XRciaJPxFUN7Fobho h4OtwPC1QDX/sC/xCbHQ9SGild1Tb6kkNxB6L1NUchwOMV8HICsKY2PCuMy09uxZUyYj 4DdfCww2WFf4xnpqlEvp+WFSNaiWgo7wC2ryC/TkO7H2/Do0ghuBJ/6d+/rIdShuQxnH fDAQ==; darn=lists.infradead.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789075227; x=1789680027; darn=lists.infradead.org; h=content-type:to:subject:message-id:date:from:mime-version:from:to :cc:subject:date:message-id:reply-to:content-type; bh=itz9h0NX52GQKHOOQjTGutRQjTAUcUFCUa7GThbT2j8=; b=H8wKIBD4mphKtGhYq/5AEdTAAZ1DKTd2LYa7XoEKoWRh+m//kjHDtS7B7OAL1oIoqO zpfCgn06+hknZNcvzFHK2BQTmozq8iA9RnUtGAHmAHkWMHUoIBsaqhj34/U4GSxXYHt3 xtNJstHLBTh9oJTMap55elVjzWadeFkrT4Evd+zEBZh3e1BOxH+II7uOorOzHsVRriC+ b68GfQ+oKYX6+5U3hkXGNY2ts9HNTaQBEqoFBodQShSELsuNUzVbEky88Z5vVY54ynnv F7k58JwAcbZaPeEZ4JKsJMVb8QvAIoZQCnrS1Yj16E5vrCZfkVUsTMzeQqzz7emxRD5h VBKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789075227; x=1789680027; h=content-type:to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=itz9h0NX52GQKHOOQjTGutRQjTAUcUFCUa7GThbT2j8=; b=FhdljCZ57N3wNrQBmKR7kmzibAVmX0U93RTI51QJRhKBGd37NEMThYpMZuO3dkj4zX z53ITsvEb7/zqckOlhEIHKhI/ixeQx4qkuCZbOiyf0rZI6OCizowjuGKbzItMVzDHFgK QIMTnxzFDwO3eDVoHQ8rdyINBanBHPkF+PC4Vr6FtnSoLFput2CAwWSBPIdDTVri3lD2 Wb10mxMZHzHMuPRtNnB1P4pBxllQ2sYmc5c1pLM8eB1cLJCd2M4pZ4ilvjK8J6VbIsOW KKkGzRz111cpPr17flbcZAp/oSXZAkmw7+L2NQgnU3e7UxNUPBHqSZPr5jfX7iaw0cV2 xcpA== X-Gm-Message-State: AFuF++mkpgucFKI5DyEPyJ9XIZA2eAnK9wKn514odgBZ4JgYD5XMHSmb O9LQ4hVe6CZ3yAgpSLuPYvfvTGhShtugiwzAm005zhGaBKXuU1DtHnei35eWrpXFSBQOefHoxOG XeWXI9x2Z0sjJrTRXSA2/N75IWfSLNz8JkHolZLw= X-Gm-Gg: AYBFou0HOI8TDKUOKyYUoZg3pfxEvTiK+udMH2jPIQnG1lXfO5p7LuXnf0XZ68h4cwn DUPrn8P81z1ed6pLSDOdZOkZVC3oPMmCMYpUhUDTinmx5Qj7xO98xeijuZ9trmjqhVNK6xefEAv nPMAxPmbRnJpDJYpzD0w9K/NrfIiFje0ztInfbUCe/syWeu6QatdFhRkLovLvtIG0dm51SdB0G3 snS8WTuUdDQeL5CULomqgwoKnhmgmo4O4uw9Nq/f6bjEzaUCZijaBgpbI2M7lorK551IDPOY2Dt DuzgrWQCnN6S4B/8Fbj3E3ruqHYMDc8D+ApF28drV1mlP8Q42imm8Q== X-Received: by 2002:a05:6102:5f82:b0:791:6580:63f0 with SMTP id ada2fe7eead31-792a93b0cafmr1505798137.10.1789075226879; Thu, 10 Sep 2026 14:20:26 -0700 (PDT) MIME-Version: 1.0 From: Brent W Date: Thu, 10 Sep 2026 17:20:15 -0400 X-Gm-Features: AcwNN1W5krQURmN1sfKF4i0pgvgos_XdCnckCYd_JPatkSJ-a-StGhXrxTrIJBo Message-ID: Subject: [PATCH RESEND] nl80211: Pass AKM to GTK rekey offload To: hostap@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260910_142028_731118_185C89B5 X-CRM114-Status: GOOD ( 14.60 ) X-Spam-Score: -2.1 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Brent NL80211_REKEY_DATA_AKM is part of the GTK rekey data API and cfg80211 forwards it to drivers. wpa_supplicant currently provides the KEK, KCK, and replay counter when configuring GTK rekey offload, but [...] Content analysis details: (-2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:e2e listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [tr4nqui1i7y(at)gmail.com] -0.0 DMARC_PASS DMARC pass policy X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Brent NL80211_REKEY_DATA_AKM is part of the GTK rekey data API and cfg80211 forwards it to drivers. wpa_supplicant currently provides the KEK, KCK, and replay counter when configuring GTK rekey offload, but does not provide the selected AKM. This leaves drivers or firmware that require the AKM for rekey offload without enough information to configure the offload correctly. This is observable with Intel iwlwifi WoWLAN on WPA3-SAE. Pass the selected AKM from wpa_supplicant through set_rekey_info() and include NL80211_REKEY_DATA_AKM in the nl80211 rekey data. This was validated with an Intel AX200 using WPA3-SAE and PMF. With the AP GTK rekey interval reduced to 60 seconds, passing the SAE suite selector (00-0f-ac:08) kept the system in deep suspend for 600 seconds through multiple GTK rotations while preserving Magic Packet wake. Signed-off-by: Brent --- Resending unchanged because the previous submission appears to have lost its intended formatting in the mail path. src/drivers/driver.h | 3 ++- src/drivers/driver_nl80211.c | 4 +++- wpa_supplicant/driver_i.h | 5 +++-- wpa_supplicant/wpas_glue.c | 4 +++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/drivers/driver.h b/src/drivers/driver.h index eb4c710..b93d4e6 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -4979,6 +4979,7 @@ struct wpa_driver_ops { * @kck: Current KCK * @kck_len: KCK length in octets * @replay_ctr: Current EAPOL-Key Replay Counter + * @akm: Selected RSN AKM suite selector (OUI and suite type) * * This optional function can be used to provide information for the * driver/firmware to process EAPOL-Key frames in Group Key Handshake @@ -4986,7 +4987,7 @@ struct wpa_driver_ops { */ void (*set_rekey_info)(void *priv, const u8 *kek, size_t kek_len, const u8 *kck, size_t kck_len, - const u8 *replay_ctr); + const u8 *replay_ctr, u32 akm); /** * sta_assoc - Station association indication diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index adf6494..a4181e8 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -11360,7 +11360,8 @@ static int wpa_driver_nl80211_get_survey(void *priv, unsigned int freq) static void nl80211_set_rekey_info(void *priv, const u8 *kek, size_t kek_len, const u8 *kck, size_t kck_len, - const u8 *replay_ctr) + const u8 *replay_ctr, + u32 akm) { struct i802_bss *bss = priv; struct wpa_driver_nl80211_data *drv = bss->drv; @@ -11376,6 +11377,7 @@ static void nl80211_set_rekey_info(void *priv, const u8 *kek, size_t kek_len, !(replay_nested = nla_nest_start(msg, NL80211_ATTR_REKEY_DATA)) || nla_put(msg, NL80211_REKEY_DATA_KEK, kek_len, kek) || (kck_len && nla_put(msg, NL80211_REKEY_DATA_KCK, kck_len, kck)) || + nla_put_u32(msg, NL80211_REKEY_DATA_AKM, akm) || nla_put(msg, NL80211_REKEY_DATA_REPLAY_CTR, NL80211_REPLAY_CTR_LEN, replay_ctr)) { nl80211_nlmsg_clear(msg); diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h index 7d8b806..67812e8 100644 --- a/wpa_supplicant/driver_i.h +++ b/wpa_supplicant/driver_i.h @@ -635,12 +635,13 @@ static inline int wpa_drv_driver_cmd(struct wpa_supplicant *wpa_s, static inline void wpa_drv_set_rekey_info(struct wpa_supplicant *wpa_s, const u8 *kek, size_t kek_len, const u8 *kck, size_t kck_len, - const u8 *replay_ctr) + const u8 *replay_ctr, + u32 akm) { if (!wpa_s->driver->set_rekey_info) return; wpa_s->driver->set_rekey_info(wpa_s->drv_priv, kek, kek_len, - kck, kck_len, replay_ctr); + kck, kck_len, replay_ctr, akm); } static inline int wpa_drv_radio_disable(struct wpa_supplicant *wpa_s, diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c index 8024fff..c6e94eb 100644 --- a/wpa_supplicant/wpas_glue.c +++ b/wpa_supplicant/wpas_glue.c @@ -1282,8 +1282,10 @@ static void wpa_supplicant_set_rekey_offload(void *ctx, const u8 *replay_ctr) { struct wpa_supplicant *wpa_s = ctx; + u32 akm = wpa_akm_to_suite(wpa_s->key_mgmt); - wpa_drv_set_rekey_info(wpa_s, kek, kek_len, kck, kck_len, replay_ctr); + wpa_drv_set_rekey_info(wpa_s, kek, kek_len, kck, kck_len, replay_ctr, + akm); } base-commit: 54c0928689f7cde587bcd9e2eb6ac6ba21bc8a78