1 From patchwork Sat Sep 17 20:29:13 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: 12979253
7 X-Patchwork-Delegate: kvalo@adurom.com
8 Return-Path: <linux-wireless-owner@kernel.org>
9 Date: Sat, 17 Sep 2022 21:29:13 +0100
10 From: Daniel Golle <daniel@makrotopia.org>
11 To: linux-wireless@vger.kernel.org, Stanislaw Gruszka <stf_xl@wp.pl>,
12 Helmut Schaa <helmut.schaa@googlemail.com>
13 Cc: Kalle Valo <kvalo@kernel.org>,
14 "David S. Miller" <davem@davemloft.net>,
15 Eric Dumazet <edumazet@google.com>,
16 Jakub Kicinski <kuba@kernel.org>,
17 Paolo Abeni <pabeni@redhat.com>,
18 Johannes Berg <johannes.berg@intel.com>
19 Subject: [PATCH v3 12/16] rt2x00: fix HT20/HT40 bandwidth switch on MT7620
21 <1664d89ba149f7b0bcec18b2a2abaedf49654507.1663445157.git.daniel@makrotopia.org>
22 References: <cover.1663445157.git.daniel@makrotopia.org>
24 Content-Disposition: inline
25 In-Reply-To: <cover.1663445157.git.daniel@makrotopia.org>
27 List-ID: <linux-wireless.vger.kernel.org>
28 X-Mailing-List: linux-wireless@vger.kernel.org
30 Add missing configuration of the channel bandwidth filter to the
31 channel setup function for MT7620.
33 Reported-by: Serge Vasilugin <vasilugin@yandex.ru>
34 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
35 Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
37 drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 8 ++++++++
38 1 file changed, 8 insertions(+)
40 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
41 +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
42 @@ -3855,6 +3855,14 @@ static void rt2800_config_channel_rf7620
44 rt2800_rfcsr_write_bank(rt2x00dev, 7, 59, rfcsr);
47 + if (conf_is_ht40(conf)) {
48 + rt2800_bbp_glrt_write(rt2x00dev, 141, 0x10);
49 + rt2800_bbp_glrt_write(rt2x00dev, 157, 0x2f);
51 + rt2800_bbp_glrt_write(rt2x00dev, 141, 0x1a);
52 + rt2800_bbp_glrt_write(rt2x00dev, 157, 0x40);
56 static void rt2800_config_alc(struct rt2x00_dev *rt2x00dev,