Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1923184pxb; Fri, 24 Sep 2021 15:23:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpFB1x2mG8NJqatci+yy23QHEnRAISzOEj6xQhn5YbTrJUJxTNeRJ+Z/qdnVPkN/R1ePK+ X-Received: by 2002:a17:906:4092:: with SMTP id u18mr4108800ejj.273.1632522221697; Fri, 24 Sep 2021 15:23:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632522221; cv=none; d=google.com; s=arc-20160816; b=gQscDU73YY2SyU5uOE7VLqsZ2ZTHnZ0Ys213PuUOU1XNcObcQk37DyInTXFy3U5Gnf PZ62cONm+gaH45wSebh1T3w9LpVVsylcL+AqLq+UYhmsLxVuUlqsRw+erAk8AfXjrccF VIWCJAo0g7S8hjBq345OhyWFN2HaYh/I4pwuKsvXbK06BWMH37Gp1lHfCr3ID41m99oW Vx5s3Ntx6+jKlXNdL6IWrgqzWBogt79bPRhA6mm6NBAmLzrVY1/GfCp2w7fe0weLlU93 rIbKIAHHDa0RNvQRCrRmo9g3ncfGl3gNV7II0T9UtEHY1JBwSnULvsvzXY5DapAwcSRT 2RvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=p5xH15MoKC2nGGBGH43k9urHCkPrHsR63RzrbWZcoSE=; b=A6EJdyBohVR+vDBC6Sz0iTyihd2Fz6YXntWBy/RoP/u91KuUjBhkv522gQAsuzinfn EcbAnBYWovkYc1p9QgI/az36JzBnerMNXnXha1+/snPatPX+BXdAyJEYplLTUrsXIw07 LbsXqNDGJk9e94TXTqDan1bqgMSKHXBjPzTGYvA1N+7ioAPkCxKzVpG4O1cyBL/TrgLD WCa6eklMD4lSSogaBOy91DDvXSEsW5gWMEUpo5Tuogum4d3vDBLJntgd+kWzZXcS8orG YgFhcMIquiO5bRY6cMwGv1ckekOPkZu5beS/lfkhvhLHo/oktHK5pVRnR4aTGeXnJJcv LQNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wetzel-home.de header.s=wetzel-home header.b=PDmDPAh+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k24si10440786edk.120.2021.09.24.15.23.20; Fri, 24 Sep 2021 15:23:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@wetzel-home.de header.s=wetzel-home header.b=PDmDPAh+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348387AbhIXUHe (ORCPT + 78 others); Fri, 24 Sep 2021 16:07:34 -0400 Received: from ns2.wdyn.eu ([5.252.227.236]:39962 "EHLO ns2.wdyn.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348379AbhIXUHe (ORCPT ); Fri, 24 Sep 2021 16:07:34 -0400 X-Greylist: delayed 79285 seconds by postgrey-1.27 at vger.kernel.org; Fri, 24 Sep 2021 16:07:33 EDT From: Alexander Wetzel DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wetzel-home.de; s=wetzel-home; t=1632513956; bh=OY1ZUAoBk877xYw+eU3j/JOQF+V70HbYYX2M4BL54/I=; h=From:To:Cc:Subject:Date; b=PDmDPAh+tMsUGGazmmAEVWWlSKo10e8ZWlCK9rnI5WxeFzpOu2/pTwIPAR2m6V7n9 0r9WKypg/LR93vvBZFLdfRV5oBkE9NLCrogpAUfkf9zEopwPBio4WNDSbULk6Al0GY GBpNN+JWq5+XatuHbzzoOKo3pxT8NNBYnNIWcBz8= To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Alexander Wetzel Subject: [PATCH] mac80211: Fix Ptk0 rekey documentation Date: Fri, 24 Sep 2021 22:05:14 +0200 Message-Id: <20210924200514.7936-1-alexander@wetzel-home.de> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org @IEEE80211_KEY_FLAG_GENERATE_IV setting is irrelevant for RX. Move the requirement to the correct section in the PTK0 rekey documentation. Signed-off-by: Alexander Wetzel --- include/net/mac80211.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index af0fc13cea34..618d1f427cb2 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -2818,13 +2818,13 @@ void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb); * Mac80211 drivers should set the @NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 flag * when they are able to replace in-use PTK keys according to the following * requirements: - * 1) They do not hand over frames decrypted with the old key to - mac80211 once the call to set_key() with command %DISABLE_KEY has been - completed when also setting @IEEE80211_KEY_FLAG_GENERATE_IV for any key, + * 1) They do not hand over frames decrypted with the old key to mac80211 + once the call to set_key() with command %DISABLE_KEY has been completed, 2) either drop or continue to use the old key for any outgoing frames queued at the time of the key deletion (including re-transmits), 3) never send out a frame queued prior to the set_key() %SET_KEY command - encrypted with the new key and + encrypted with the new key when also needing + @IEEE80211_KEY_FLAG_GENERATE_IV and 4) never send out a frame unencrypted when it should be encrypted. Mac80211 will not queue any new frames for a deleted key to the driver. */ -- 2.33.0