OSDN Git Service

mt76x0: do not overwrite other MT_BBP(AGC, 8) fields
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 31 Oct 2018 07:32:58 +0000 (08:32 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:21:42 +0000 (12:21 +0100)
commitb983a5b900627faa49cf37e101d65b56e941c740
tree8933cadc98672c1432363c5a66d85525da6836c7
parent88046b2c9f6d8b91cc8b3ada547f49f6dd45469b
mt76x0: do not overwrite other MT_BBP(AGC, 8) fields

MT_BBP(AGC, 8) register has values depend on band in
mt76x0_bbp_switch_tab, so we should not overwrite other fields
than MT_BBP_AGC_GAIN when setting gain.

This can fix performance issues when connecting to 2.4GHz AP.

Fixes: 4636a2544c3b ("mt76x0: phy: align channel gain logic to mt76x2 one")
Acked-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/phy.c