diff options
Diffstat (limited to 'drivers/net/wireless/b43/lo.c')
-rw-r--r-- | drivers/net/wireless/b43/lo.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43/lo.c b/drivers/net/wireless/b43/lo.c index f47a32da534d..4c82d582a524 100644 --- a/drivers/net/wireless/b43/lo.c +++ b/drivers/net/wireless/b43/lo.c | |||
@@ -98,7 +98,7 @@ static u16 lo_measure_feedthrough(struct b43_wldev *dev, | |||
98 | rfover |= pga; | 98 | rfover |= pga; |
99 | rfover |= lna; | 99 | rfover |= lna; |
100 | rfover |= trsw_rx; | 100 | rfover |= trsw_rx; |
101 | if ((dev->sdev->bus->sprom.boardflags_lo & B43_BFL_EXTLNA) | 101 | if ((dev->dev->bus_sprom->boardflags_lo & B43_BFL_EXTLNA) |
102 | && phy->rev > 6) | 102 | && phy->rev > 6) |
103 | rfover |= B43_PHY_RFOVERVAL_EXTLNA; | 103 | rfover |= B43_PHY_RFOVERVAL_EXTLNA; |
104 | 104 | ||
@@ -301,14 +301,12 @@ static void lo_measure_gain_values(struct b43_wldev *dev, | |||
301 | max_rx_gain = 0; | 301 | max_rx_gain = 0; |
302 | 302 | ||
303 | if (has_loopback_gain(phy)) { | 303 | if (has_loopback_gain(phy)) { |
304 | int trsw_rx = 0; | ||
305 | int trsw_rx_gain; | 304 | int trsw_rx_gain; |
306 | 305 | ||
307 | if (use_trsw_rx) { | 306 | if (use_trsw_rx) { |
308 | trsw_rx_gain = gphy->trsw_rx_gain / 2; | 307 | trsw_rx_gain = gphy->trsw_rx_gain / 2; |
309 | if (max_rx_gain >= trsw_rx_gain) { | 308 | if (max_rx_gain >= trsw_rx_gain) { |
310 | trsw_rx_gain = max_rx_gain - trsw_rx_gain; | 309 | trsw_rx_gain = max_rx_gain - trsw_rx_gain; |
311 | trsw_rx = 0x20; | ||
312 | } | 310 | } |
313 | } else | 311 | } else |
314 | trsw_rx_gain = max_rx_gain; | 312 | trsw_rx_gain = max_rx_gain; |
@@ -387,7 +385,7 @@ struct lo_g_saved_values { | |||
387 | static void lo_measure_setup(struct b43_wldev *dev, | 385 | static void lo_measure_setup(struct b43_wldev *dev, |
388 | struct lo_g_saved_values *sav) | 386 | struct lo_g_saved_values *sav) |
389 | { | 387 | { |
390 | struct ssb_sprom *sprom = &dev->sdev->bus->sprom; | 388 | struct ssb_sprom *sprom = dev->dev->bus_sprom; |
391 | struct b43_phy *phy = &dev->phy; | 389 | struct b43_phy *phy = &dev->phy; |
392 | struct b43_phy_g *gphy = phy->g; | 390 | struct b43_phy_g *gphy = phy->g; |
393 | struct b43_txpower_lo_control *lo = gphy->lo_control; | 391 | struct b43_txpower_lo_control *lo = gphy->lo_control; |