From: Gábor Stefanik Date: Fri, 14 Aug 2009 19:11:59 +0000 (+0200) Subject: b43: LP-PHY: Don't adjust gain table for rev2+ when setting channel X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c61bb9a410de6ef36b4a473ced34f983a87db35;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git b43: LP-PHY: Don't adjust gain table for rev2+ when setting channel Rev2+ never needs to have gain tables adjusted according to the spec. Signed-off-by: Gábor Stefanik Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c index e010268b9879..ce81920d26dc 100644 --- a/drivers/net/wireless/b43/phy_lp.c +++ b/drivers/net/wireless/b43/phy_lp.c @@ -2059,10 +2059,9 @@ static int b43_lpphy_op_switch_channel(struct b43_wldev *dev, if (err) return err; lpphy_japan_filter(dev, new_channel); + lpphy_adjust_gain_table(dev, channel2freq_lp(new_channel)); } - lpphy_adjust_gain_table(dev, channel2freq_lp(new_channel)); - return 0; }