]> asedeno.scripts.mit.edu Git - linux.git/commit
mt76x02: assure we update gain after scan
authorStanislaw Gruszka <sgruszka@redhat.com>
Thu, 1 Nov 2018 15:35:02 +0000 (16:35 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:21:43 +0000 (12:21 +0100)
commit4784a3cc3fffd0ba5ef6c7a23980ae0318fc1369
treef72f58ecaa8b7bf8dafe054e160baf9121c7be8f
parentf1b8ee35fec4a070b7760a99709fc98f237c2b86
mt76x02: assure we update gain after scan

Assure that after we initialize dev->cal.low_gain to -1 this
will cause update gain calibration. Otherwise this might or
might not happen depending on value of second bit of low_gain
and values read from registers in mt76x02_phy_adjust_vga_gain().

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/phy.c
drivers/net/wireless/mediatek/mt76/mt76x02_util.c
drivers/net/wireless/mediatek/mt76/mt76x2/phy.c