b43: N-PHY: fix BPHY init
authorRafał Miłecki <zajec5@gmail.com>
Thu, 18 Nov 2010 20:11:41 +0000 (21:11 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Nov 2010 21:19:34 +0000 (16:19 -0500)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/phy_n.c

index d52d514910552e6e2d921a93adf1f890458b5f54..bf0d63d61b6af44a3115c612eb7571f3d4d7d52b 100644 (file)
@@ -1580,13 +1580,13 @@ static void b43_nphy_bphy_init(struct b43_wldev *dev)
        u16 val;
 
        val = 0x1E1F;
-       for (i = 0; i < 14; i++) {
+       for (i = 0; i < 16; i++) {
                b43_phy_write(dev, B43_PHY_N_BMODE(0x88 + i), val);
                val -= 0x202;
        }
        val = 0x3E3F;
        for (i = 0; i < 16; i++) {
-               b43_phy_write(dev, B43_PHY_N_BMODE(0x97 + i), val);
+               b43_phy_write(dev, B43_PHY_N_BMODE(0x98 + i), val);
                val -= 0x202;
        }
        b43_phy_write(dev, B43_PHY_N_BMODE(0x38), 0x668);