aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/b43/main.c')
-rw-r--r--drivers/net/wireless/b43/main.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 72321d802f1d..16b413d11d19 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -1924,7 +1924,7 @@ static int b43_gpio_init(struct b43_wldev *dev)
1924 mask |= 0x0180; 1924 mask |= 0x0180;
1925 set |= 0x0180; 1925 set |= 0x0180;
1926 } 1926 }
1927 if (dev->dev->bus->sprom.r1.boardflags_lo & B43_BFL_PACTRL) { 1927 if (dev->dev->bus->sprom.boardflags_lo & B43_BFL_PACTRL) {
1928 b43_write16(dev, B43_MMIO_GPIO_MASK, 1928 b43_write16(dev, B43_MMIO_GPIO_MASK,
1929 b43_read16(dev, B43_MMIO_GPIO_MASK) 1929 b43_read16(dev, B43_MMIO_GPIO_MASK)
1930 | 0x0200); 1930 | 0x0200);
@@ -2289,7 +2289,7 @@ static void b43_periodic_every60sec(struct b43_wldev *dev)
2289 2289
2290 if (!b43_has_hardware_pctl(phy)) 2290 if (!b43_has_hardware_pctl(phy))
2291 b43_lo_g_ctl_mark_all_unused(dev); 2291 b43_lo_g_ctl_mark_all_unused(dev);
2292 if (dev->dev->bus->sprom.r1.boardflags_lo & B43_BFL_RSSI) { 2292 if (dev->dev->bus->sprom.boardflags_lo & B43_BFL_RSSI) {
2293 b43_mac_suspend(dev); 2293 b43_mac_suspend(dev);
2294 b43_calc_nrssi_slope(dev); 2294 b43_calc_nrssi_slope(dev);
2295 if ((phy->radio_ver == 0x2050) && (phy->radio_rev == 8)) { 2295 if ((phy->radio_ver == 0x2050) && (phy->radio_rev == 8)) {
@@ -3208,13 +3208,13 @@ static void b43_bluetooth_coext_enable(struct b43_wldev *dev)
3208 struct ssb_sprom *sprom = &dev->dev->bus->sprom; 3208 struct ssb_sprom *sprom = &dev->dev->bus->sprom;
3209 u32 hf; 3209 u32 hf;
3210 3210
3211 if (!(sprom->r1.boardflags_lo & B43_BFL_BTCOEXIST)) 3211 if (!(sprom->boardflags_lo & B43_BFL_BTCOEXIST))
3212 return; 3212 return;
3213 if (dev->phy.type != B43_PHYTYPE_B && !dev->phy.gmode) 3213 if (dev->phy.type != B43_PHYTYPE_B && !dev->phy.gmode)
3214 return; 3214 return;
3215 3215
3216 hf = b43_hf_read(dev); 3216 hf = b43_hf_read(dev);
3217 if (sprom->r1.boardflags_lo & B43_BFL_BTCMOD) 3217 if (sprom->boardflags_lo & B43_BFL_BTCMOD)
3218 hf |= B43_HF_BTCOEXALT; 3218 hf |= B43_HF_BTCOEXALT;
3219 else 3219 else
3220 hf |= B43_HF_BTCOEX; 3220 hf |= B43_HF_BTCOEX;
@@ -3345,7 +3345,7 @@ static int b43_wireless_core_init(struct b43_wldev *dev)
3345 hf |= B43_HF_SYMW; 3345 hf |= B43_HF_SYMW;
3346 if (phy->rev == 1) 3346 if (phy->rev == 1)
3347 hf |= B43_HF_GDCW; 3347 hf |= B43_HF_GDCW;
3348 if (sprom->r1.boardflags_lo & B43_BFL_PACTRL) 3348 if (sprom->boardflags_lo & B43_BFL_PACTRL)
3349 hf |= B43_HF_OFDMPABOOST; 3349 hf |= B43_HF_OFDMPABOOST;
3350 } else if (phy->type == B43_PHYTYPE_B) { 3350 } else if (phy->type == B43_PHYTYPE_B) {
3351 hf |= B43_HF_SYMW; 3351 hf |= B43_HF_SYMW;
@@ -3862,20 +3862,20 @@ static void b43_sprom_fixup(struct ssb_bus *bus)
3862 /* boardflags workarounds */ 3862 /* boardflags workarounds */
3863 if (bus->boardinfo.vendor == SSB_BOARDVENDOR_DELL && 3863 if (bus->boardinfo.vendor == SSB_BOARDVENDOR_DELL &&
3864 bus->chip_id == 0x4301 && bus->boardinfo.rev == 0x74) 3864 bus->chip_id == 0x4301 && bus->boardinfo.rev == 0x74)
3865 bus->sprom.r1.boardflags_lo |= B43_BFL_BTCOEXIST; 3865 bus->sprom.boardflags_lo |= B43_BFL_BTCOEXIST;
3866 if (bus->boardinfo.vendor == PCI_VENDOR_ID_APPLE && 3866 if (bus->boardinfo.vendor == PCI_VENDOR_ID_APPLE &&
3867 bus->boardinfo.type == 0x4E && bus->boardinfo.rev > 0x40) 3867 bus->boardinfo.type == 0x4E && bus->boardinfo.rev > 0x40)
3868 bus->sprom.r1.boardflags_lo |= B43_BFL_PACTRL; 3868 bus->sprom.boardflags_lo |= B43_BFL_PACTRL;
3869 3869
3870 /* Handle case when gain is not set in sprom */ 3870 /* Handle case when gain is not set in sprom */
3871 if (bus->sprom.r1.antenna_gain_a == 0xFF) 3871 if (bus->sprom.antenna_gain_a == 0xFF)
3872 bus->sprom.r1.antenna_gain_a = 2; 3872 bus->sprom.antenna_gain_a = 2;
3873 if (bus->sprom.r1.antenna_gain_bg == 0xFF) 3873 if (bus->sprom.antenna_gain_bg == 0xFF)
3874 bus->sprom.r1.antenna_gain_bg = 2; 3874 bus->sprom.antenna_gain_bg = 2;
3875 3875
3876 /* Convert Antennagain values to Q5.2 */ 3876 /* Convert Antennagain values to Q5.2 */
3877 bus->sprom.r1.antenna_gain_a <<= 2; 3877 bus->sprom.antenna_gain_a <<= 2;
3878 bus->sprom.r1.antenna_gain_bg <<= 2; 3878 bus->sprom.antenna_gain_bg <<= 2;
3879} 3879}
3880 3880
3881static void b43_wireless_exit(struct ssb_device *dev, struct b43_wl *wl) 3881static void b43_wireless_exit(struct ssb_device *dev, struct b43_wl *wl)
@@ -3908,10 +3908,10 @@ static int b43_wireless_init(struct ssb_device *dev)
3908 hw->max_noise = -110; 3908 hw->max_noise = -110;
3909 hw->queues = 1; /* FIXME: hardware has more queues */ 3909 hw->queues = 1; /* FIXME: hardware has more queues */
3910 SET_IEEE80211_DEV(hw, dev->dev); 3910 SET_IEEE80211_DEV(hw, dev->dev);
3911 if (is_valid_ether_addr(sprom->r1.et1mac)) 3911 if (is_valid_ether_addr(sprom->et1mac))
3912 SET_IEEE80211_PERM_ADDR(hw, sprom->r1.et1mac); 3912 SET_IEEE80211_PERM_ADDR(hw, sprom->et1mac);
3913 else 3913 else
3914 SET_IEEE80211_PERM_ADDR(hw, sprom->r1.il0mac); 3914 SET_IEEE80211_PERM_ADDR(hw, sprom->il0mac);
3915 3915
3916 /* Get and initialize struct b43_wl */ 3916 /* Get and initialize struct b43_wl */
3917 wl = hw_to_b43_wl(hw); 3917 wl = hw_to_b43_wl(hw);