From: <yhchuang@realtek.com>
To: <kvalo@codeaurora.org>
Cc: <linux-wireless@vger.kernel.org>, <pkshih@realtek.com>,
<bigeasy@linutronix.de>
Subject: [PATCH v3 8/9] rtw88: fill zeros to words 0x06 and 0x07 of security cam entry
Date: Tue, 12 May 2020 18:26:20 +0800 [thread overview]
Message-ID: <20200512102621.5148-9-yhchuang@realtek.com> (raw)
In-Reply-To: <20200512102621.5148-1-yhchuang@realtek.com>
From: Ping-Ke Shih <pkshih@realtek.com>
8723D adds some experimental features to word 0x06 of cam entry, so fill
zeros to initialize them to off state. For existing chips, these two words
are reserved and always zeros, so this change is harmless for them.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
---
drivers/net/wireless/realtek/rtw88/sec.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/realtek/rtw88/sec.c b/drivers/net/wireless/realtek/rtw88/sec.c
index d0d7fbb10d58..ce46e5b4a60a 100644
--- a/drivers/net/wireless/realtek/rtw88/sec.c
+++ b/drivers/net/wireless/realtek/rtw88/sec.c
@@ -44,7 +44,7 @@ void rtw_sec_write_cam(struct rtw_dev *rtwdev,
write_cmd = RTW_SEC_CMD_WRITE_ENABLE | RTW_SEC_CMD_POLLING;
addr = hw_key_idx << RTW_SEC_CAM_ENTRY_SHIFT;
- for (i = 5; i >= 0; i--) {
+ for (i = 7; i >= 0; i--) {
switch (i) {
case 0:
content = ((key->keyidx & 0x3)) |
@@ -60,6 +60,10 @@ void rtw_sec_write_cam(struct rtw_dev *rtwdev,
(cam->addr[4] << 16) |
(cam->addr[5] << 24);
break;
+ case 6:
+ case 7:
+ content = 0;
+ break;
default:
j = (i - 2) << 2;
content = (key->key[j]) |
--
2.17.1
next prev parent reply other threads:[~2020-05-12 10:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-12 10:26 [PATCH v3 0/9] rtw88: 8723d: Add RF calibration and coex yhchuang
2020-05-12 10:26 ` [PATCH v3 1/9] rtw88: 8723d: Add LC calibration yhchuang
2020-05-13 15:49 ` Kalle Valo
2020-05-12 10:26 ` [PATCH v3 2/9] rtw88: 8723d: add IQ calibration yhchuang
2020-05-12 10:26 ` [PATCH v3 3/9] rtw88: 8723d: Add power tracking yhchuang
2020-05-12 10:26 ` [PATCH v3 4/9] rtw88: 8723d: Add shutdown callback to disable BT USB suspend yhchuang
2020-05-12 10:26 ` [PATCH v3 5/9] rtw88: 8723d: implement flush queue yhchuang
2020-05-12 10:26 ` [PATCH v3 6/9] rtw88: 8723d: set ltecoex register address in chip_info yhchuang
2020-05-12 10:26 ` [PATCH v3 7/9] rtw88: 8723d: Add coex support yhchuang
2020-05-12 10:26 ` yhchuang [this message]
2020-05-12 10:26 ` [PATCH v3 9/9] rtw88: 8723d: Add 8723DE to Kconfig and Makefile yhchuang
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=20200512102621.5148-9-yhchuang@realtek.com \
--to=yhchuang@realtek.com \
--cc=bigeasy@linutronix.de \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
--cc=pkshih@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).