b43: HT-PHY: enable radio
authorRafał Miłecki <zajec5@gmail.com>
Sun, 19 Jun 2011 00:18:12 +0000 (02:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Jun 2011 20:09:42 +0000 (16:09 -0400)
The trick was to find 0x810 PHY reg ops close to analog enabling code.
To find out proper masks and sets, MMIO hacks were used.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/phy_ht.c

index e84d4c1353543eaddee601ea2aa931130f3fbbc0..008c1a96c2d39a30240f781225c70978616e3cae 100644 (file)
@@ -69,6 +69,10 @@ static void b43_phy_ht_op_software_rfkill(struct b43_wldev *dev,
        if (blocked) {
                b43_phy_mask(dev, B43_PHY_HT_RF_CTL1, ~0);
        } else {
+               b43_phy_mask(dev, B43_PHY_HT_RF_CTL1, ~0);
+               b43_phy_maskset(dev, B43_PHY_HT_RF_CTL1, ~0, 0x1);
+               b43_phy_mask(dev, B43_PHY_HT_RF_CTL1, ~0);
+               b43_phy_maskset(dev, B43_PHY_HT_RF_CTL1, ~0, 0x2);
        }
 }