From: Ping-Ke Shih <pkshih@realtek.com>
To: <kvalo@kernel.org>
Cc: <timlee@realtek.com>, <linux-wireless@vger.kernel.org>
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 [thread overview]
Message-ID: <20240302005828.13666-7-pkshih@realtek.com> (raw)
In-Reply-To: <20240302005828.13666-1-pkshih@realtek.com>
From: Chin-Yen Lee <timlee@realtek.com>
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 <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
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
next prev parent reply other threads:[~2024-03-02 0:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-02 0:58 [PATCH 0/7] wifi: rtw89: wow: update registers for WiFi 7 generation chips Ping-Ke Shih
2024-03-02 0:58 ` [PATCH 1/7] wifi: rtw89: wow: update WoWLAN reason register for different chips Ping-Ke Shih
2024-03-05 18:57 ` Kalle Valo
2024-03-02 0:58 ` [PATCH 2/7] wifi: rtw89: wow: update WoWLAN status register for different generation Ping-Ke Shih
2024-03-02 0:58 ` [PATCH 3/7] wifi: rtw89: update DMA function with " Ping-Ke Shih
2024-03-02 0:58 ` [PATCH 4/7] wifi: rtw89: wow: update config mac " Ping-Ke Shih
2024-03-02 0:58 ` [PATCH 5/7] wifi: rtw89: update suspend/resume for " Ping-Ke Shih
2024-03-02 0:58 ` Ping-Ke Shih [this message]
2024-03-02 0:58 ` [PATCH 7/7] wifi: rtw89: wow: move release offload packet earlier for WoWLAN mode Ping-Ke Shih
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240302005828.13666-7-pkshih@realtek.com \
--to=pkshih@realtek.com \
--cc=kvalo@kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=timlee@realtek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).