b43: Implement RFKILL status for LP PHY
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 21 Sep 2009 22:59:27 +0000 (17:59 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Sep 2009 15:35:45 +0000 (11:35 -0400)
The LP (and probably N) PHY has the same radio disabled bit as
the higher-revision A and G PHYs.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/rfkill.c

index 31e5599..7a3218c 100644 (file)
@@ -28,7 +28,7 @@
 /* Returns TRUE, if the radio is enabled in hardware. */
 bool b43_is_hw_radio_enabled(struct b43_wldev *dev)
 {
-       if (dev->phy.rev >= 3) {
+       if (dev->phy.rev >= 3 || dev->phy.type == B43_PHYTYPE_LP) {
                if (!(b43_read32(dev, B43_MMIO_RADIO_HWENABLED_HI)
                      & B43_MMIO_RADIO_HWENABLED_HI_MASK))
                        return 1;