* [PATCH] b43legacy: rfkill: use status register based on core revision (not PHY's)
@ 2010-11-03 20:36 Rafał Miłecki
2010-11-03 20:50 ` Larry Finger
0 siblings, 1 reply; 2+ messages in thread
From: Rafał Miłecki @ 2010-11-03 20:36 UTC (permalink / raw)
To: linux-wireless, John W. Linville; +Cc: b43-dev, Rafał Miłecki
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
With this patch we follow specs. I hope this will fix bug where radio was
magically auto-turning on/off. Unfortunately I didn't get answer from reporter
of that issue.
John: I suggest taking it for 2.6.38
---
drivers/net/wireless/b43legacy/rfkill.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/b43legacy/rfkill.c b/drivers/net/wireless/b43legacy/rfkill.c
index d579df7..b90f223 100644
--- a/drivers/net/wireless/b43legacy/rfkill.c
+++ b/drivers/net/wireless/b43legacy/rfkill.c
@@ -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;
--
1.6.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-03 20:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-03 20:36 [PATCH] b43legacy: rfkill: use status register based on core revision (not PHY's) Rafał Miłecki
2010-11-03 20:50 ` Larry Finger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).