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.karo-electronics.de/?a=commitdiff_plain;h=0c61bb9a410de6ef36b4a473ced34f983a87db35;p=mv-sheeva.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 e010268b987..ce81920d26d 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; }