diff options
author | Shiji Yang <yangshiji66@outlook.com> | 2023-10-19 13:58:58 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-10-25 11:06:16 +0200 |
commit | cca74bed37af1c8217bcd8282d9b384efdbf73bd (patch) | |
tree | 1cbafe85e9150de416b6a7108a7f521cd9b10707 /drivers/net/wireless/ralink/rt2x00/rt2x00.h | |
parent | wifi: rt2x00: rework MT7620 channel config function (diff) | |
download | linux-cca74bed37af1c8217bcd8282d9b384efdbf73bd.tar.xz linux-cca74bed37af1c8217bcd8282d9b384efdbf73bd.zip |
wifi: rt2x00: rework MT7620 PA/LNA RF calibration
1. Move MT7620 PA/LNA calibration code to dedicated functions.
2. For external PA/LNA devices, restore RF and BBP registers before
R-Calibration.
3. Do Rx DCOC calibration again before RXIQ calibration.
4. Add some missing LNA related registers' initialization.
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/TYAP286MB0315979F92DC563019B8F238BCD4A@TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM
Diffstat (limited to '')
-rw-r--r-- | drivers/net/wireless/ralink/rt2x00/rt2x00.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00.h b/drivers/net/wireless/ralink/rt2x00/rt2x00.h index 07a6a5a9ce13..aaaf99331967 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2x00.h +++ b/drivers/net/wireless/ralink/rt2x00/rt2x00.h @@ -1263,6 +1263,12 @@ rt2x00_has_cap_external_lna_bg(struct rt2x00_dev *rt2x00dev) } static inline bool +rt2x00_has_cap_external_pa(struct rt2x00_dev *rt2x00dev) +{ + return rt2x00_has_cap_flag(rt2x00dev, CAPABILITY_EXTERNAL_PA_TX0); +} + +static inline bool rt2x00_has_cap_double_antenna(struct rt2x00_dev *rt2x00dev) { return rt2x00_has_cap_flag(rt2x00dev, CAPABILITY_DOUBLE_ANTENNA); |