diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2010-12-07 15:55:57 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-08 15:38:44 -0500 |
commit | c7455cf988f06ba578cc6a680392426fce382ca1 (patch) | |
tree | df0622ac19a77ef33dae142bcb6733565f57d211 /drivers/net/wireless/b43 | |
parent | 2f886750118c1781d3b53268bf25519aef1d4d71 (diff) |
b43: N-PHY: silence warnings
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r-- | drivers/net/wireless/b43/phy_n.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index f78f4e96defa..d41da7f5584a 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c | |||
@@ -258,7 +258,8 @@ static void b43_nphy_tx_power_fix(struct b43_wldev *dev) | |||
258 | 258 | ||
259 | for (i = 0; i < 2; i++) { | 259 | for (i = 0; i < 2; i++) { |
260 | if (dev->phy.rev >= 3) { | 260 | if (dev->phy.rev >= 3) { |
261 | /* TODO */ | 261 | /* FIXME: support 5GHz */ |
262 | txgain = b43_ntab_tx_gain_rev3plus_2ghz[txpi[i]]; | ||
262 | radio_gain = (txgain >> 16) & 0x1FFFF; | 263 | radio_gain = (txgain >> 16) & 0x1FFFF; |
263 | } else { | 264 | } else { |
264 | txgain = b43_ntab_tx_gain_rev0_1_2[txpi[i]]; | 265 | txgain = b43_ntab_tx_gain_rev0_1_2[txpi[i]]; |
@@ -613,6 +614,8 @@ static void b43_nphy_rx_iq_coeffs(struct b43_wldev *dev, bool write, | |||
613 | } | 614 | } |
614 | } | 615 | } |
615 | 616 | ||
617 | #if 0 | ||
618 | /* Ready but not used anywhere */ | ||
616 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/RxCalPhyCleanup */ | 619 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/RxCalPhyCleanup */ |
617 | static void b43_nphy_rx_cal_phy_cleanup(struct b43_wldev *dev, u8 core) | 620 | static void b43_nphy_rx_cal_phy_cleanup(struct b43_wldev *dev, u8 core) |
618 | { | 621 | { |
@@ -694,6 +697,7 @@ static void b43_nphy_rx_cal_phy_setup(struct b43_wldev *dev, u8 core) | |||
694 | b43_nphy_rf_control_intc_override(dev, 1, rxval, (core + 1)); | 697 | b43_nphy_rf_control_intc_override(dev, 1, rxval, (core + 1)); |
695 | b43_nphy_rf_control_intc_override(dev, 1, txval, (2 - core)); | 698 | b43_nphy_rf_control_intc_override(dev, 1, txval, (2 - core)); |
696 | } | 699 | } |
700 | #endif | ||
697 | 701 | ||
698 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/CalcRxIqComp */ | 702 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/CalcRxIqComp */ |
699 | static void b43_nphy_calc_rx_iq_comp(struct b43_wldev *dev, u8 mask) | 703 | static void b43_nphy_calc_rx_iq_comp(struct b43_wldev *dev, u8 mask) |
@@ -3088,7 +3092,7 @@ static int b43_nphy_rev2_cal_rx_iq(struct b43_wldev *dev, | |||
3088 | u8 rfctl[2]; | 3092 | u8 rfctl[2]; |
3089 | u8 afectl_core; | 3093 | u8 afectl_core; |
3090 | u16 tmp[6]; | 3094 | u16 tmp[6]; |
3091 | u16 cur_hpf1, cur_hpf2, cur_lna; | 3095 | u16 uninitialized_var(cur_hpf1), uninitialized_var(cur_hpf2), cur_lna; |
3092 | u32 real, imag; | 3096 | u32 real, imag; |
3093 | enum ieee80211_band band; | 3097 | enum ieee80211_band band; |
3094 | 3098 | ||