b43legacy: rfkill: use status register based on core revision (not PHY's)
authorRafał Miłecki <zajec5@gmail.com>
Wed, 3 Nov 2010 20:36:12 +0000 (21:36 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Nov 2010 18:25:52 +0000 (13:25 -0500)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43legacy/rfkill.c

index d579df72b783566b557f60d66c87ed167bc46c82..b90f223fb31cb87463263ae6ffad5e71b367525c 100644 (file)
@@ -29,7 +29,7 @@
 /* Returns TRUE, if the radio is enabled in hardware. */
 bool b43legacy_is_hw_radio_enabled(struct b43legacy_wldev *dev)
 {
-       if (dev->phy.rev >= 3) {
+       if (dev->dev->id.revision >= 3) {
                if (!(b43legacy_read32(dev, B43legacy_MMIO_RADIO_HWENABLED_HI)
                      & B43legacy_MMIO_RADIO_HWENABLED_HI_MASK))
                        return 1;