1 From patchwork Sat Sep 17 20:30:09 2022
2 Content-Type: text/plain; charset="utf-8"
4 Content-Transfer-Encoding: 7bit
5 X-Patchwork-Submitter: Daniel Golle <daniel@makrotopia.org>
6 X-Patchwork-Id: 12979257
7 X-Patchwork-Delegate: kvalo@adurom.com
8 Return-Path: <linux-wireless-owner@kernel.org>
9 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
10 aws-us-west-2-korg-lkml-1.web.codeaurora.org
11 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18])
12 by smtp.lore.kernel.org (Postfix) with ESMTP id E9118ECAAA1
13 for <linux-wireless@archiver.kernel.org>;
14 Sat, 17 Sep 2022 20:30:22 +0000 (UTC)
15 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
16 id S229639AbiIQUaV (ORCPT
17 <rfc822;linux-wireless@archiver.kernel.org>);
18 Sat, 17 Sep 2022 16:30:21 -0400
19 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53912 "EHLO
20 lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
21 with ESMTP id S229628AbiIQUaT (ORCPT
22 <rfc822;linux-wireless@vger.kernel.org>);
23 Sat, 17 Sep 2022 16:30:19 -0400
24 Received: from fudo.makrotopia.org (fudo.makrotopia.org
25 [IPv6:2a07:2ec0:3002::71])
26 by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AEA822B27
27 for <linux-wireless@vger.kernel.org>;
28 Sat, 17 Sep 2022 13:30:16 -0700 (PDT)
30 by fudo.makrotopia.org with esmtpsa
31 (TLS1.3:TLS_AES_256_GCM_SHA384:256)
33 (envelope-from <daniel@makrotopia.org>)
35 Sat, 17 Sep 2022 22:30:15 +0200
36 Date: Sat, 17 Sep 2022 21:30:09 +0100
37 From: Daniel Golle <daniel@makrotopia.org>
38 To: linux-wireless@vger.kernel.org, Stanislaw Gruszka <stf_xl@wp.pl>,
39 Helmut Schaa <helmut.schaa@googlemail.com>
40 Cc: Kalle Valo <kvalo@kernel.org>,
41 "David S. Miller" <davem@davemloft.net>,
42 Eric Dumazet <edumazet@google.com>,
43 Jakub Kicinski <kuba@kernel.org>,
44 Paolo Abeni <pabeni@redhat.com>,
45 Johannes Berg <johannes.berg@intel.com>
46 Subject: [PATCH v3 16/16] rt2x00: correctly set BBP register 86 for MT7620
48 <257267247ee4fa7ebc6a5d0c4948b3f8119c0d77.1663445157.git.daniel@makrotopia.org>
49 References: <cover.1663445157.git.daniel@makrotopia.org>
51 Content-Disposition: inline
52 In-Reply-To: <cover.1663445157.git.daniel@makrotopia.org>
54 List-ID: <linux-wireless.vger.kernel.org>
55 X-Mailing-List: linux-wireless@vger.kernel.org
57 Instead of 0 set the correct value for BBP register 86 for MT7620.
59 Reported-by: Serge Vasilugin <vasilugin@yandex.ru>
60 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
61 Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
63 drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 5 ++++-
64 1 file changed, 4 insertions(+), 1 deletion(-)
66 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
67 +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
68 @@ -4225,7 +4225,10 @@ static void rt2800_config_channel(struct
69 rt2800_bbp_write(rt2x00dev, 62, 0x37 - rt2x00dev->lna_gain);
70 rt2800_bbp_write(rt2x00dev, 63, 0x37 - rt2x00dev->lna_gain);
71 rt2800_bbp_write(rt2x00dev, 64, 0x37 - rt2x00dev->lna_gain);
72 - rt2800_bbp_write(rt2x00dev, 86, 0);
73 + if (rt2x00_rt(rt2x00dev, RT6352))
74 + rt2800_bbp_write(rt2x00dev, 86, 0x38);
76 + rt2800_bbp_write(rt2x00dev, 86, 0);
79 if (rf->channel <= 14) {