diff options
Diffstat (limited to 'drivers/net/wireless/b43legacy/radio.c')
-rw-r--r-- | drivers/net/wireless/b43legacy/radio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/b43legacy/radio.c b/drivers/net/wireless/b43legacy/radio.c index ccdb6fc8932b..1a72eb0f8f66 100644 --- a/drivers/net/wireless/b43legacy/radio.c +++ b/drivers/net/wireless/b43legacy/radio.c | |||
@@ -827,7 +827,7 @@ void b43legacy_calc_nrssi_threshold(struct b43legacy_wldev *dev) | |||
827 | case B43legacy_PHYTYPE_B: { | 827 | case B43legacy_PHYTYPE_B: { |
828 | if (phy->radio_ver != 0x2050) | 828 | if (phy->radio_ver != 0x2050) |
829 | return; | 829 | return; |
830 | if (!(dev->dev->bus->sprom.r1.boardflags_lo & | 830 | if (!(dev->dev->bus->sprom.boardflags_lo & |
831 | B43legacy_BFL_RSSI)) | 831 | B43legacy_BFL_RSSI)) |
832 | return; | 832 | return; |
833 | 833 | ||
@@ -857,7 +857,7 @@ void b43legacy_calc_nrssi_threshold(struct b43legacy_wldev *dev) | |||
857 | } | 857 | } |
858 | case B43legacy_PHYTYPE_G: | 858 | case B43legacy_PHYTYPE_G: |
859 | if (!phy->gmode || | 859 | if (!phy->gmode || |
860 | !(dev->dev->bus->sprom.r1.boardflags_lo & | 860 | !(dev->dev->bus->sprom.boardflags_lo & |
861 | B43legacy_BFL_RSSI)) { | 861 | B43legacy_BFL_RSSI)) { |
862 | tmp16 = b43legacy_nrssi_hw_read(dev, 0x20); | 862 | tmp16 = b43legacy_nrssi_hw_read(dev, 0x20); |
863 | if (tmp16 >= 0x20) | 863 | if (tmp16 >= 0x20) |
@@ -1406,7 +1406,7 @@ static u16 b43legacy_get_812_value(struct b43legacy_wldev *dev, u8 lpd) | |||
1406 | if (!phy->gmode) | 1406 | if (!phy->gmode) |
1407 | return 0; | 1407 | return 0; |
1408 | if (!has_loopback_gain(phy)) { | 1408 | if (!has_loopback_gain(phy)) { |
1409 | if (phy->rev < 7 || !(dev->dev->bus->sprom.r1.boardflags_lo | 1409 | if (phy->rev < 7 || !(dev->dev->bus->sprom.boardflags_lo |
1410 | & B43legacy_BFL_EXTLNA)) { | 1410 | & B43legacy_BFL_EXTLNA)) { |
1411 | switch (lpd) { | 1411 | switch (lpd) { |
1412 | case LPD(0, 1, 1): | 1412 | case LPD(0, 1, 1): |
@@ -1459,7 +1459,7 @@ static u16 b43legacy_get_812_value(struct b43legacy_wldev *dev, u8 lpd) | |||
1459 | } | 1459 | } |
1460 | 1460 | ||
1461 | loop_or = (loop << 8) | extern_lna_control; | 1461 | loop_or = (loop << 8) | extern_lna_control; |
1462 | if (phy->rev >= 7 && dev->dev->bus->sprom.r1.boardflags_lo | 1462 | if (phy->rev >= 7 && dev->dev->bus->sprom.boardflags_lo |
1463 | & B43legacy_BFL_EXTLNA) { | 1463 | & B43legacy_BFL_EXTLNA) { |
1464 | if (extern_lna_control) | 1464 | if (extern_lna_control) |
1465 | loop_or |= 0x8000; | 1465 | loop_or |= 0x8000; |
@@ -1550,7 +1550,7 @@ u16 b43legacy_radio_init2050(struct b43legacy_wldev *dev) | |||
1550 | b43legacy_get_812_value(dev, | 1550 | b43legacy_get_812_value(dev, |
1551 | LPD(0, 1, 1))); | 1551 | LPD(0, 1, 1))); |
1552 | if (phy->rev < 7 || | 1552 | if (phy->rev < 7 || |
1553 | !(dev->dev->bus->sprom.r1.boardflags_lo | 1553 | !(dev->dev->bus->sprom.boardflags_lo |
1554 | & B43legacy_BFL_EXTLNA)) | 1554 | & B43legacy_BFL_EXTLNA)) |
1555 | b43legacy_phy_write(dev, 0x0811, 0x01B3); | 1555 | b43legacy_phy_write(dev, 0x0811, 0x01B3); |
1556 | else | 1556 | else |
@@ -1786,7 +1786,7 @@ int b43legacy_radio_selectchannel(struct b43legacy_wldev *dev, | |||
1786 | channel2freq_bg(channel)); | 1786 | channel2freq_bg(channel)); |
1787 | 1787 | ||
1788 | if (channel == 14) { | 1788 | if (channel == 14) { |
1789 | if (dev->dev->bus->sprom.r1.country_code == 5) /* JAPAN) */ | 1789 | if (dev->dev->bus->sprom.country_code == 5) /* JAPAN) */ |
1790 | b43legacy_shm_write32(dev, B43legacy_SHM_SHARED, | 1790 | b43legacy_shm_write32(dev, B43legacy_SHM_SHARED, |
1791 | B43legacy_UCODEFLAGS_OFFSET, | 1791 | B43legacy_UCODEFLAGS_OFFSET, |
1792 | b43legacy_shm_read32(dev, | 1792 | b43legacy_shm_read32(dev, |