wifi: rt2x00: set VGC gain for both chains of MT7620
authorDaniel Golle <daniel@makrotopia.org>
Sat, 17 Sep 2022 20:29:40 +0000 (21:29 +0100)
committerKalle Valo <kvalo@kernel.org>
Sat, 24 Sep 2022 12:30:57 +0000 (15:30 +0300)
Set bbp66 for all chains of the MT7620.

Reported-by: Serge Vasilugin <vasilugin@yandex.ru>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/29e161397e5c9d9399da0fe87d44458aa2b90a78.1663445157.git.daniel@makrotopia.org
drivers/net/wireless/ralink/rt2x00/rt2800lib.c

index 48c695b..f25ab41 100644 (file)
@@ -5743,7 +5743,8 @@ static inline void rt2800_set_vgc(struct rt2x00_dev *rt2x00dev,
        if (qual->vgc_level != vgc_level) {
                if (rt2x00_rt(rt2x00dev, RT3572) ||
                    rt2x00_rt(rt2x00dev, RT3593) ||
-                   rt2x00_rt(rt2x00dev, RT3883)) {
+                   rt2x00_rt(rt2x00dev, RT3883) ||
+                   rt2x00_rt(rt2x00dev, RT6352)) {
                        rt2800_bbp_write_with_rx_chain(rt2x00dev, 66,
                                                       vgc_level);
                } else if (rt2x00_rt(rt2x00dev, RT5592)) {