Skip to contentSkip to conversation

b43: Implement RFKILL status for LP PHY

PATCH In review Larry Finger 2 participants 2 messages Sep 21, 2009 – Sep 22, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 b43: Implement RFKILL status for LP PHY

The LP (and probably N) PHY has the same radio disabled bit as the higher-revision A and G PHYs.

---

John,

Submission of this change for 2.6.32 would be nice, but not necessary.

Larry
---

drivers/net/wireless/b43/rfkill.c +1 -1
Index: wireless-testing/drivers/net/wireless/b43/rfkill.c
===================================================================
@@ -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;
#1 lore raw
Quoted 4 lines · On Tuesday 22 September 2009 00:59:27 Larry Finger wrote:

The LP (and probably N) PHY has the same radio disabled bit as the higher-revision A and G PHYs.

ack

Quoted 26 lines

---

John,

Submission of this change for 2.6.32 would be nice, but not necessary.

Larry
---

Index: wireless-testing/drivers/net/wireless/b43/rfkill.c
===================================================================

drivers/net/wireless/b43/rfkill.c +1 -1
@@ -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;
Signature · 1 line
Greetings, Michael.