Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp486700lqb; Thu, 14 Mar 2024 18:22:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXuWak+SfKOVsMS94kuN+hPz56M0g7Csb4INgV0yMxCejQ2IKjJNHx73yREMdm6TLUbMNaJTaL/KxMbP9t48xL0J26BebrwS8P7HZyM0g== X-Google-Smtp-Source: AGHT+IGUjNji0MJyDV6o29F0wF/qBPfGZtMjiCVolJ5zxoypvIUeyDy+/TtlbA9sBDuipLmRVGnS X-Received: by 2002:a17:906:a415:b0:a46:2ac1:c3f4 with SMTP id l21-20020a170906a41500b00a462ac1c3f4mr2066091ejz.75.1710465777498; Thu, 14 Mar 2024 18:22:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710465777; cv=pass; d=google.com; s=arc-20160816; b=DTyN+VND4Xa5Kok44AkQQq8T+vCiDm73n9JVaPBGhu9p+pjaaWCzgOE+E6WAc44lso qFJAoMbWxMbQLrkgdMgDTqopjYyosyjZI3PZxVV26o/FyjnklZ5DXhI3l2O+duLMMZ8l YmCQZQ6Afsqw2kvmMXrtlxGFnrkKP6Hi7E/Ptxs2OzTr1D1SJFbC/MJWssq2R6zfAK0V OylxLZICZX+BnG6qFE604HHFmbi2n84QaBrhojkcmBQEJSoVFBwRcRMyLPBG8kF+Bs9u nD/XwmPi/4QyJHUccrWkvZgZi9Jd81vvWqSfLNtP20RJkkbfmJns/HS8CNPa1LN/tBFo gCNQ== 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=/ZsPJVhHQMKgo7nE87eRrZSlwoKA/d9AKAQ3sW6SdK8=; fh=LQGtYe9vP0onFiP/6l3tkQw/DADLCp+GjsQcHD3gn8k=; b=sAVEz5w0MWbYQNEyiYwIs0qZJQTR0Qe17+EPKZRV7xq/DapsdIY9vj/4FrWiwOk88D /mQeSC1CEIZ9xvySM5smdQCuZBK7FqLE5XEPuKM0aLyDiGikezA+sq7yKyJ6SOV3XrCV 9BjfWSi4CH+Xpwk8WlAJsOoJTxmAkzkHVs3ZtZBuzp74eysGq+QHt6D9ebF4NzNC5hZp Hd9Owi5bhYVH32CgLOFoS6eQT+4eGhFjCsTmi5xdv5LAJJPBVB3xtix7KJRDy/ES3LQv UBfxHpVD7tVvEA9OQqSI722373Rich5p5GqQVjQGgLtCnM1bKn338vauyjBu2pGr73IE 0mRA==; 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-4783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4783-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i25-20020a17090671d900b00a45fefed6cesi1225230ejk.752.2024.03.14.18.22.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 18:22:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-4783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4783-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 274241F22987 for ; Fri, 15 Mar 2024 01:22:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77B24D26B; Fri, 15 Mar 2024 01:22:55 +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 7D875D27A for ; Fri, 15 Mar 2024 01:22:52 +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=1710465775; cv=none; b=h5XNCA7wpgeeeQDluHaNaCTZ8nX8/wHo/jynjRqcTx2ELlMdQ5TFn3/2cRPkkLZHK1xfvr9gE6M5jUdtC72WWAmZdx8gxSPLgu4NiiZ1CdgBCehWlcjzQ6MfDH2RLYdKYbr2YFTt/yiJR5Mf8rHugwxw2mgY4ptnf3IwAcCcwFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710465775; c=relaxed/simple; bh=/ZsPJVhHQMKgo7nE87eRrZSlwoKA/d9AKAQ3sW6SdK8=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=X8EgbHRWcF6kL924CHwBNjI30f7welbPsnkr2R/Nhi/9K3TRKufa1oEQuqe1jc1q2CL74dkbsnZURmSVgiD8mTN0iTkus4lQ0qEw1BAaPG7Y32+jVcwLH1j0kZcIfqJnputVELGKdalFcAvb56xO7IKmEAzV6ui8f4xgdWXa1Zs= 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 42F1MLRG01645167, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 42F1MLRG01645167 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Mar 2024 09:22:21 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 15 Mar 2024 09:22:22 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS03.realtek.com.tw (172.21.6.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 15 Mar 2024 09:22:21 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::c9b7:82a9:7e98:fa7f]) by RTEXMBS04.realtek.com.tw ([fe80::c9b7:82a9:7e98:fa7f%7]) with mapi id 15.01.2507.035; Fri, 15 Mar 2024 09:22:21 +0800 From: Ping-Ke Shih To: Martin Kaistra , "linux-wireless@vger.kernel.org" CC: Jes Sorensen , Kalle Valo , Bitterblue Smith , Sebastian Andrzej Siewior Subject: RE: [PATCH] wifi: rtl8xxxu: enable MFP support Thread-Topic: [PATCH] wifi: rtl8xxxu: enable MFP support Thread-Index: AQHadi+EaQT0NSwYfk2FMY1mPLyqGrE3/bnA Date: Fri, 15 Mar 2024 01:22:21 +0000 Message-ID: <87b1ae549aba4311a8102b61db006e0f@realtek.com> References: <20240314164850.86432-1-martin.kaistra@linutronix.de> In-Reply-To: <20240314164850.86432-1-martin.kaistra@linutronix.de> Accept-Language: en-US, zh-TW Content-Language: zh-TW x-kse-serverinfo: RTEXMBS03.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback 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-AntiSpam-Interceptor-Info: fallback > -----Original Message----- > From: Martin Kaistra > Sent: Friday, March 15, 2024 12:49 AM > To: linux-wireless@vger.kernel.org > Cc: Jes Sorensen ; Kalle Valo ;= Ping-Ke Shih > ; Bitterblue Smith ; Sebasti= an Andrzej Siewior > > Subject: [PATCH] wifi: rtl8xxxu: enable MFP support >=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 frames 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 > Signed-off-by: Martin Kaistra Reviewed-by: Ping-Ke Shih