b43legacy: rfkill: use status register based on core revision (not PHY's)
PATCH 1/1 b43legacy: rfkill: use status register based on core revision (not PHY's)
Signed-off-by Rafa? Mi?ecki <[email protected]>
---
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(-)
drivers/net/wireless/b43legacy/rfkill.c +1 -1
@@ -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 ;
Signature · 1 line
1.6.0.4
PATCH 1/1 b43legacy: rfkill: use status register based on core revision (not PHY's)
Quoted 7 lines · Rafał Miłecki
Signed-off-by Rafał Miłecki <[email protected]>---
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
ACK, both for the patch and the suggestion for the timing.
Larry