rt2x00: fix HT20/HT40 bandwidth switch on MT7620
PATCH 11/15 rt2x00: fix HT20/HT40 bandwidth switch on MT7620
Add missing configuration of the channel bandwidth filter to the channel setup function for MT7620.
Reported-by Serge Vasilugin <[email protected]>
Signed-off-by Daniel Golle <[email protected]>
--- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/net/wireless/ralink/rt2x00/rt2800lib.c +8 -0
@@ -3813,6 +3813,14 @@ static void rt2800_config_channel_rf7620(struct rt2x00_dev *rt2x00dev, rfcsr |= tx_agc_fc;rt2800_rfcsr_write_bank (rt2x00dev,7 ,59 , rfcsr); } + +if (conf_is_ht40 (conf)) { +rt2800_bbp_glrt_write (rt2x00dev,141 ,0x10 ); +rt2800_bbp_glrt_write (rt2x00dev,157 ,0x2f ); + }else { +rt2800_bbp_glrt_write (rt2x00dev,141 ,0x1a ); +rt2800_bbp_glrt_write (rt2x00dev,157 ,0x40 ); + } } static void rt2800_config_alc(struct rt2x00_dev *rt2x00dev,
Signature · 1 line
2.37.3
Quoted 5 lines · Daniel Golle
Add missing configuration of the channel bandwidth filter to the channel setup function for MT7620.
Reported-by Serge Vasilugin <[email protected]>Signed-off-by Daniel Golle <[email protected]>