projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6631110
)
wifi: rt2x00: correct MAC_SYS_CTRL register RX mask in R-Calibration
author
Shiji Yang
<yangshiji66@outlook.com>
Sat, 5 Aug 2023 09:17:28 +0000
(17:17 +0800)
committer
Kalle Valo
<kvalo@kernel.org>
Mon, 21 Aug 2023 16:13:21 +0000
(19:13 +0300)
For MAC_SYS_CTRL register, Bit[2] controls MAC_TX_EN and Bit[3]
controls MAC_RX_EN (Bit index starts from 0). Therefore, 0x08 is
the correct mask for RX.
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link:
https://lore.kernel.org/r/TYAP286MB03150B571B67B896A504AC34BC0EA@TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM
drivers/net/wireless/ralink/rt2x00/rt2800lib.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
index 1226a883cd671d2a45d738ee5cf5d4a4ff026137..ab374c50c35d8e62caeaf4bda826ab7d544b9d72 100644
(file)
--- a/
drivers/net/wireless/ralink/rt2x00/rt2800lib.c
+++ b/
drivers/net/wireless/ralink/rt2x00/rt2800lib.c
@@
-8561,7
+8561,7
@@
static void rt2800_r_calibration(struct rt2x00_dev *rt2x00dev)
rt2x00_warn(rt2x00dev, "Wait MAC Tx Status to MAX !!!\n");
maccfg = rt2800_register_read(rt2x00dev, MAC_SYS_CTRL);
- maccfg &= (~0x0
4
);
+ maccfg &= (~0x0
8
);
rt2800_register_write(rt2x00dev, MAC_SYS_CTRL, maccfg);
if (unlikely(rt2800_wait_bbp_rf_ready(rt2x00dev, MAC_STATUS_CFG_BBP_RF_BUSY_RX)))