diff options
-rw-r--r-- | drivers/net/wireless/b43/phy_lp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c index 2d3a5d812c42..7e70c078475b 100644 --- a/drivers/net/wireless/b43/phy_lp.c +++ b/drivers/net/wireless/b43/phy_lp.c | |||
@@ -44,7 +44,7 @@ static inline u16 channel2freq_lp(u8 channel) | |||
44 | static unsigned int b43_lpphy_op_get_default_chan(struct b43_wldev *dev) | 44 | static unsigned int b43_lpphy_op_get_default_chan(struct b43_wldev *dev) |
45 | { | 45 | { |
46 | if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) | 46 | if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ) |
47 | return 1; | 47 | return 7; //FIXME temporary - channel 1 is broken |
48 | return 36; | 48 | return 36; |
49 | } | 49 | } |
50 | 50 | ||
@@ -705,7 +705,7 @@ static void lpphy_set_rc_cap(struct b43_wldev *dev) | |||
705 | u8 rc_cap = (lpphy->rc_cap & 0x1F) >> 1; | 705 | u8 rc_cap = (lpphy->rc_cap & 0x1F) >> 1; |
706 | 706 | ||
707 | if (dev->phy.rev == 1) //FIXME check channel 14! | 707 | if (dev->phy.rev == 1) //FIXME check channel 14! |
708 | rc_cap = max_t(u8, rc_cap + 5, 15); | 708 | rc_cap = min_t(u8, rc_cap + 5, 15); |
709 | 709 | ||
710 | b43_radio_write(dev, B2062_N_RXBB_CALIB2, | 710 | b43_radio_write(dev, B2062_N_RXBB_CALIB2, |
711 | max_t(u8, lpphy->rc_cap - 4, 0x80)); | 711 | max_t(u8, lpphy->rc_cap - 4, 0x80)); |
@@ -1008,6 +1008,7 @@ static int lpphy_loopback(struct b43_wldev *dev) | |||
1008 | 1008 | ||
1009 | b43_phy_maskset(dev, B43_LPPHY_RF_OVERRIDE_VAL_0, 0xFFFC, 0x3); | 1009 | b43_phy_maskset(dev, B43_LPPHY_RF_OVERRIDE_VAL_0, 0xFFFC, 0x3); |
1010 | b43_phy_set(dev, B43_LPPHY_RF_OVERRIDE_0, 0x3); | 1010 | b43_phy_set(dev, B43_LPPHY_RF_OVERRIDE_0, 0x3); |
1011 | b43_phy_set(dev, B43_LPPHY_AFE_CTL_OVR, 1); | ||
1011 | b43_phy_mask(dev, B43_LPPHY_AFE_CTL_OVRVAL, 0xFFFE); | 1012 | b43_phy_mask(dev, B43_LPPHY_AFE_CTL_OVRVAL, 0xFFFE); |
1012 | b43_phy_set(dev, B43_LPPHY_RF_OVERRIDE_0, 0x800); | 1013 | b43_phy_set(dev, B43_LPPHY_RF_OVERRIDE_0, 0x800); |
1013 | b43_phy_set(dev, B43_LPPHY_RF_OVERRIDE_VAL_0, 0x800); | 1014 | b43_phy_set(dev, B43_LPPHY_RF_OVERRIDE_VAL_0, 0x800); |
@@ -1213,7 +1214,7 @@ static void lpphy_rev0_1_rc_calib(struct b43_wldev *dev) | |||
1213 | mean_sq_pwr = ideal_pwr - normal_pwr; | 1214 | mean_sq_pwr = ideal_pwr - normal_pwr; |
1214 | mean_sq_pwr *= mean_sq_pwr; | 1215 | mean_sq_pwr *= mean_sq_pwr; |
1215 | inner_sum += mean_sq_pwr; | 1216 | inner_sum += mean_sq_pwr; |
1216 | if ((i = 128) || (inner_sum < mean_sq_pwr_min)) { | 1217 | if ((i == 128) || (inner_sum < mean_sq_pwr_min)) { |
1217 | lpphy->rc_cap = i; | 1218 | lpphy->rc_cap = i; |
1218 | mean_sq_pwr_min = inner_sum; | 1219 | mean_sq_pwr_min = inner_sum; |
1219 | } | 1220 | } |