|
|
@@ -0,0 +1,70 @@
|
|
|
+From patchwork Thu Aug 29 11:29:59 2019
|
|
|
+Content-Type: text/plain; charset="utf-8"
|
|
|
+MIME-Version: 1.0
|
|
|
+Content-Transfer-Encoding: 7bit
|
|
|
+X-Patchwork-Submitter: Stanislaw Gruszka <[email protected]>
|
|
|
+X-Patchwork-Id: 11121089
|
|
|
+X-Patchwork-Delegate: [email protected]
|
|
|
+From: Stanislaw Gruszka <[email protected]>
|
|
|
+To: [email protected]
|
|
|
+Subject: [PATCH 5.3] Revert "rt2800: enable TX_PIN_CFG_LNA_PE_ bits per band"
|
|
|
+Date: Thu, 29 Aug 2019 13:29:59 +0200
|
|
|
+Message-Id: <[email protected]>
|
|
|
+Sender: [email protected]
|
|
|
+List-ID: <linux-wireless.vger.kernel.org>
|
|
|
+X-Mailing-List: [email protected]
|
|
|
+
|
|
|
+This reverts commit 9ad3b55654455258a9463384edb40077439d879f.
|
|
|
+
|
|
|
+As reported by Sergey:
|
|
|
+
|
|
|
+"I got some problem after upgrade kernel to 5.2 version (debian testing
|
|
|
+linux-image-5.2.0-2-amd64). 5Ghz client stopped to see AP.
|
|
|
+Some tests with 1metre distance between client-AP: 2.4Ghz -22dBm, for
|
|
|
+5Ghz - 53dBm !, for longer distance (8m + walls) 2.4 - 61dBm, 5Ghz not
|
|
|
+visible."
|
|
|
+
|
|
|
+It was identified that rx signal level degradation was caused by
|
|
|
+9ad3b5565445 ("rt2800: enable TX_PIN_CFG_LNA_PE_ bits per band").
|
|
|
+So revert this commit.
|
|
|
+
|
|
|
+Cc: <[email protected]> # v5.1+
|
|
|
+Reported-and-tested-by: Sergey Maranchuk <[email protected]>
|
|
|
+Signed-off-by: Stanislaw Gruszka <[email protected]>
|
|
|
+---
|
|
|
+ drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 18 ++++++------------
|
|
|
+ 1 file changed, 6 insertions(+), 12 deletions(-)
|
|
|
+
|
|
|
+--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
|
|
|
++++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
|
|
|
+@@ -4242,24 +4242,18 @@ static void rt2800_config_channel(struct
|
|
|
+ switch (rt2x00dev->default_ant.rx_chain_num) {
|
|
|
+ case 3:
|
|
|
+ /* Turn on tertiary LNAs */
|
|
|
+- rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_A2_EN,
|
|
|
+- rf->channel > 14);
|
|
|
+- rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_G2_EN,
|
|
|
+- rf->channel <= 14);
|
|
|
++ rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_A2_EN, 1);
|
|
|
++ rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_G2_EN, 1);
|
|
|
+ /* fall-through */
|
|
|
+ case 2:
|
|
|
+ /* Turn on secondary LNAs */
|
|
|
+- rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_A1_EN,
|
|
|
+- rf->channel > 14);
|
|
|
+- rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_G1_EN,
|
|
|
+- rf->channel <= 14);
|
|
|
++ rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_A1_EN, 1);
|
|
|
++ rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_G1_EN, 1);
|
|
|
+ /* fall-through */
|
|
|
+ case 1:
|
|
|
+ /* Turn on primary LNAs */
|
|
|
+- rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_A0_EN,
|
|
|
+- rf->channel > 14);
|
|
|
+- rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_G0_EN,
|
|
|
+- rf->channel <= 14);
|
|
|
++ rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_A0_EN, 1);
|
|
|
++ rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_G0_EN, 1);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|