Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp975837lqb; Wed, 17 Apr 2024 17:20:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVS82TCrvl7+Y/AMS9eXkVHbn1+E8h6SvFKCWN61BU8dDjRtqb6+Ie296lfqxMzFObPO9GovWUWMwwnt642KDGVvsAYuJPiYNofHNB7Ow== X-Google-Smtp-Source: AGHT+IGtdwIC0guJzenKtEy9o1IvtqqMCAm/AxShMZTZqt1c3pqj2Rk22WOTkdiI58RoC93zaRZX X-Received: by 2002:a05:6359:838f:b0:186:3ae:e13c with SMTP id wv15-20020a056359838f00b0018603aee13cmr1454967rwb.0.1713399615024; Wed, 17 Apr 2024 17:20:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713399614; cv=pass; d=google.com; s=arc-20160816; b=qQnq07c+lHMydAqqzuLgUJvA+bt393xVtjg1RRWruxyP0flB6vZDPzaI3Xy86/TiJI Oip9a6BU6DWnHVN5k2Dle88gosxHWDJlVY401OFIRZjwmpzXxex4dcjBFG+EfAdDiNSg bueCSRZdL9h6+jpCXLTRkB8k9KTiiYyY7Wwpq0WHlLZXW9NamtihuQzOAPq/PmJDD0QB FizpmIhUlrNh7G6/NKcMdkhkg/n3Ph1hT+LmIl8yAs70Dg9PXWEmTJmRdyQ1JQ4KN7Oq ay/tQM4yYaAmgOuB0LW5/ugI9YYxQqP/JsQdab6QnvEXBnQRvJWdxjjJaP58/ACZ5wYX Oi/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=MzbK/ytoNMbGF1byMK1n/Y8pUtBzGblXv0mWxLRo/vc=; fh=TeWXU7EEC3uZRbrKBla0k1kiUrrQ2AtUcUQ/WDbxpTQ=; b=dUWawqAIvIEaK9EwqXNgz/7ibhzCNK0TJ1lisM3xrE5Lga00z3WZJkcb/aT8L996uu /S13YLYZV3lpAdb6rFh3lP33ZfoeCiW+iPLohGBGruEXsCEU93fWAXkYDinLgGJPCXkt rfTEmd+iiwNE3hwmbEZ6q8ZSqygIbpHRKbVI8UtnNDvxCMjycO5uJClgxSkrs/+w7uuD K3aSYrsq1FMY77TwRHWLWA/rsKJlywQ2m+tKdAcfjDmcXef8KjcYbuztNmBq9dkkDE51 CrnME1hz878JWLyZRpZnLswPVUKsjOVtRSv2Sq/zBjyW3Cz9fmm7zdd3+M1mNkoYEbm5 t1sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6469-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k11-20020ac85fcb000000b00434738fbaaesi327423qta.608.2024.04.17.17.20.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 17:20:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6469-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6469-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A41381C2120F for ; Thu, 18 Apr 2024 00:20:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A648376; Thu, 18 Apr 2024 00:20:11 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 402CD10E6; Thu, 18 Apr 2024 00:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713399611; cv=none; b=OSijuvUjn8yU6GBmJdnI7OWDNOwG2EA9+lIDPZ3HBIs+1n6Xr0JJQx/SxL3EOTfw6SRycHb4JaaMLqU+9OMWd+Mr3Suigl9IABCxbRUEXpak5xrlIXDfcWybkINrBNDE3WxlNcqjzetsH5C5nRf8GiDHMehaZVeQ8bEdTBzC+78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713399611; c=relaxed/simple; bh=MzbK/ytoNMbGF1byMK1n/Y8pUtBzGblXv0mWxLRo/vc=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=akVKx/gZv8PqPv7pmwGTiDcazjZDrJD1qr4+N/u3w5OtneLqp/BxWtKcJcLeNePIFONwPNon8TZVfvWsMhQhgz251LbWle6neI2tR1xETYbjEhfUxbCh76/Wry+7xdYgb2ClyK3fCpg7hE/S96HkETFantujwXI0qWeYEcAPQfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 43I0JwSbA3878648, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 43I0JwSbA3878648 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Apr 2024 08:19:58 +0800 Received: from RTEXDAG01.realtek.com.tw (172.21.6.100) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 18 Apr 2024 08:19:59 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG01.realtek.com.tw (172.21.6.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 18 Apr 2024 08:19:58 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7]) by RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7%5]) with mapi id 15.01.2507.035; Thu, 18 Apr 2024 08:19:58 +0800 From: Ping-Ke Shih To: Martin Kaistra , "linux-wireless@vger.kernel.org" CC: Jes Sorensen , Bitterblue Smith , Sebastian Andrzej Siewior , "stable@vger.kernel.org" Subject: RE: [PATCH 2/2] wifi: rtl8xxxu: enable MFP support Thread-Topic: [PATCH 2/2] wifi: rtl8xxxu: enable MFP support Thread-Index: AQHakKpmN+k3bxFC206ySgnAPq76G7FtKcXg Date: Thu, 18 Apr 2024 00:19:58 +0000 Message-ID: <6a1571aadad1486eb83a19437e1d2437@realtek.com> References: <20240417093352.1840632-1-martin.kaistra@linutronix.de> <20240417093352.1840632-3-martin.kaistra@linutronix.de> In-Reply-To: <20240417093352.1840632-3-martin.kaistra@linutronix.de> Accept-Language: en-US, zh-TW Content-Language: zh-TW Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Martin Kaistra wrote: >=20 > In order to connect to networks which require 802.11w, add the > MFP_CAPABLE flag and let mac80211 do the actual crypto in software. >=20 > When a robust management frame is received, rx_dec->swdec is not set, > even though the HW did not decrypt it. Extend the check and don't set > RX_FLAG_DECRYPTED for these frames in order to use SW decryption. >=20 > Use the security flag in the RX descriptor for this purpose, like it is > done in the rtw88 driver. >=20 > Cc: stable@vger.kernel.org > Signed-off-by: Martin Kaistra I would like to change subject to "wifi: rtl8xxxu: enable MFP support with security flag of RX descriptor", because the same subject as former patch cause confusing. I can change that during committing.=20 Others are good to me.