Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp637546lqg; Fri, 1 Mar 2024 17:00:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUZBRLRhQJBdLeQiEL4s3BCj8ZJeYry/hWjhw4ASs/ic3K67eFZx2NtNFe1/rcztso2qsd4jj8hPwAYhbsLNXojD3sa0iLn1/An6+O4dA== X-Google-Smtp-Source: AGHT+IFaeCpFmnq8xhLZWx5HxtqHLhPN/XjRhqz5QAgryumNB5Gz0tbx/aZK2KHijWQ4FJZGTNMt X-Received: by 2002:a05:6808:488:b0:3c1:d9b1:3c53 with SMTP id z8-20020a056808048800b003c1d9b13c53mr1250930oid.15.1709341209393; Fri, 01 Mar 2024 17:00:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709341209; cv=pass; d=google.com; s=arc-20160816; b=JXXHfqeowEw7LfQbGt9igCwZP2fDRrsyUrXiy258pvCcCftQV3TKJmlEbdr4WbbZUa tMGJKT+CeY9zIDOQNcSwu5zOqvVWW3PbVchhLmognDVp/ubzA4BCW4rkVcUdtREcpS6f pqvFCJgQ9o/HHhrUuPbqSe5AAiIhCLPsME6yjHY//uvpnIDcA9x3YhHl4aFQGO0xdADC DS99sX0LMRLuXmYLJo8mJqG2hanUpqfhQcLrrbUDfEwoxFOde6TFcqs0GSI46ayQDqlZ VfQkQOlq9YK6oJuWJnX/xbGwfvp4CxQElMQ/UWjglSL4AqeRIzZHvyTYjVJaJtBaVvR2 O5IQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=cdN6Q9gzsehB+1Gl9JWCWAA7iq8m9BHy6/l6Y+oNwZk=; fh=rwbbOpirGLazcG3VmHY7vQI1XGYPlr4kq9/FvO3l4jE=; b=QlcTO5M6G6LdrIyMx90TYeSARCsklHkpckkOA4JMijG1pVq1NbOpeTzk1sM0Fp5OH3 sSeKZVv9RlI/T9Q5/yzS9a+/6LQVP0/xfqd9uiWEBnQkBjQpn/xAHn8xpc/f2lEAnJPM f8m4nA2bqHYO5GJEEIgH9ueugR4GLIkXsUBbzdHc8jxQOvtpAGSz8dLwlUbj8vkJCLPB f/hkZtrxlHq2Cm1kceKjKrHnZjVM3YDoktwmmxCthqNCgcqtE6AP0Xlxs/NOuxEgSk+c U7HSiGifCRFKdI6jt+JmFJHpCAenyZbbl3etAavcfCagQ+DbsPsd/QKuz5RLyTZFPkdm 9/zQ==; 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-4319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4319-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y19-20020a056a00191300b006e47dc9d922si4578090pfi.138.2024.03.01.17.00.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 17:00:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-4319-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4319-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 02E62286EF9 for ; Sat, 2 Mar 2024 01:00:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2D5DF519; Sat, 2 Mar 2024 01:00:01 +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 3F0F9B662 for ; Sat, 2 Mar 2024 00:59:59 +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=1709341201; cv=none; b=sdki85PUtxpd3kiNl8MgtZqNDrSt5Nx1KOAev3vbZe3YoK00+Urm5cycOVhLUMLnFqGQn27/reTmCYHy4qzXatIlA5zjvUOvrYRchs++iH+hWroG0C1KceaSsSZZ4XYX+sL3CFtaDd6U2fZIPaUyPuMAsII4RSR99GvyOXWvDLI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709341201; c=relaxed/simple; bh=WJGJVMPQWM52lZHtpSxcLiAmDlTZSxbJDipplqmO0T0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=onmKn5Ue4Iftfe4A/fncVEO8xpVmKNl6NxOPdKqaPr/OLeYZJB49Jxr7ekiUxldAkJGE38OGhWRZHdK+79Ppt7YyRUzdm7hGBvhftVd9x3fgerzc4voBmRr7QVfJknZMhD6HYuFAzrP1Zz2ya5o1N8qKrq8zRsAQEXTyC7rRoG4= 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 4220xsTdB2370306, 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 4220xsTdB2370306 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 2 Mar 2024 08:59:54 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) 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.17; Sat, 2 Mar 2024 08:59:55 +0800 Received: from [127.0.1.1] (172.16.16.155) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Sat, 2 Mar 2024 08:59:54 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 6/7] wifi: rtw89: wow: set security engine options for 802.11ax chips only Date: Sat, 2 Mar 2024 08:58:27 +0800 Message-ID: <20240302005828.13666-7-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240302005828.13666-1-pkshih@realtek.com> References: <20240302005828.13666-1-pkshih@realtek.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) From: Chin-Yen Lee The security engine is set for management frames by default for 802.11be chips, so no need to set it in WoWLAN flow. Signed-off-by: Chin-Yen Lee Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/mac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c index 38124f9a178b..521decd932c0 100644 --- a/drivers/net/wireless/realtek/rtw89/mac.c +++ b/drivers/net/wireless/realtek/rtw89/mac.c @@ -2025,6 +2025,9 @@ void rtw89_mac_hw_mgnt_sec(struct rtw89_dev *rtwdev, bool enable) { u32 msk32 = B_AX_UC_MGNT_DEC | B_AX_BMC_MGNT_DEC; + if (rtwdev->chip->chip_gen != RTW89_CHIP_AX) + return; + if (enable) rtw89_write32_set(rtwdev, R_AX_SEC_ENG_CTRL, msk32); else -- 2.25.1