rt2800: fix mt7620 E2 channel registers
authorTomislav Požega <pozega.tomislav@gmail.com>
Tue, 18 Apr 2017 09:52:07 +0000 (11:52 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 20 Apr 2017 11:00:54 +0000 (14:00 +0300)
update RF register 47 and 54 values according to vendor driver

Signed-off-by: Tomislav Požega <pozega.tomislav@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2800lib.c

index 86cffee6876a7899eef9908748607d472837dcf3..8585cdc3de53e706dba668e016e69b7ea062017e 100644 (file)
@@ -8145,9 +8145,11 @@ static void rt2800_init_rfcsr_6352(struct rt2x00_dev *rt2x00dev)
        rt2800_rfcsr_write_chanreg(rt2x00dev, 44, 0xB3);
        rt2800_rfcsr_write_chanreg(rt2x00dev, 45, 0xD5);
        rt2800_rfcsr_write_chanreg(rt2x00dev, 46, 0x27);
-       rt2800_rfcsr_write_chanreg(rt2x00dev, 47, 0x69);
+       rt2800_rfcsr_write_bank(rt2x00dev, 4, 47, 0x67);
+       rt2800_rfcsr_write_bank(rt2x00dev, 6, 47, 0x69);
        rt2800_rfcsr_write_chanreg(rt2x00dev, 48, 0xFF);
-       rt2800_rfcsr_write_chanreg(rt2x00dev, 54, 0x20);
+       rt2800_rfcsr_write_bank(rt2x00dev, 4, 54, 0x27);
+       rt2800_rfcsr_write_bank(rt2x00dev, 6, 54, 0x20);
        rt2800_rfcsr_write_chanreg(rt2x00dev, 55, 0x66);
        rt2800_rfcsr_write_chanreg(rt2x00dev, 56, 0xFF);
        rt2800_rfcsr_write_chanreg(rt2x00dev, 57, 0x1C);