diff options
author | Chin-Yen Lee <timlee@realtek.com> | 2024-03-02 03:58:27 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2024-03-05 21:56:43 +0300 |
commit | d12d3df874975e8879d77c289812bbb96e5ae1a9 (patch) | |
tree | 0f6ba42d72cf0a3be2c6c175d0bfc39565997f99 /drivers/net/wireless | |
parent | 60b3f2898a80e7ca38d8bf6ed6bfc707e2282d6f (diff) | |
download | linux-d12d3df874975e8879d77c289812bbb96e5ae1a9.tar.xz |
wifi: rtw89: wow: set security engine options for 802.11ax chips only
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>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240302005828.13666-7-pkshih@realtek.com
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/realtek/rtw89/mac.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw89/mac.c b/drivers/net/wireless/realtek/rtw89/mac.c index 06a4b7ab0200..aa5b396b5d2b 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 |