b43: LP-PHY: Don't adjust gain table for rev2+ when setting channel
authorGábor Stefanik <netrolller.3d@gmail.com>
Fri, 14 Aug 2009 19:11:59 +0000 (21:11 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 20 Aug 2009 15:35:54 +0000 (11:35 -0400)
Rev2+ never needs to have gain tables adjusted according to the spec.

Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/phy_lp.c

index e010268b98792da5b6d36e076665eb68b27f9996..ce81920d26dc5a9285dc3428fdfd669036004b20 100644 (file)
@@ -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;
 }
 
This page took 0.037902 seconds and 5 git commands to generate.