Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249081
b: refs/heads/master
c: 0c6d4ad
h: refs/heads/master
i:
  249079: 7e23ca6
v: v3
  • Loading branch information
Roland Vossen authored and Greg Kroah-Hartman committed Apr 20, 2011
1 parent b048cba commit 7786f2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b6ee72351adcec239563a89a402fa387e46e102
refs/heads/master: 0c6d4ad9f7dede78815933e667464415a75ce118
32 changes: 4 additions & 28 deletions trunk/drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_lcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1081,8 +1081,6 @@ wlc_lcnphy_qdiv_roundup(u32 dividend, u32 divisor, u8 precision)
{
u32 quotient, remainder, roundup, rbit;

ASSERT(divisor);

quotient = dividend / divisor;
remainder = dividend % divisor;
rbit = divisor & 1;
Expand Down Expand Up @@ -1780,11 +1778,6 @@ void wlc_lcnphy_set_tx_pwr_ctrl(phy_info_t *pi, u16 mode)
s8 index;
phy_info_lcnphy_t *pi_lcn = pi->u.pi_lcnphy;

ASSERT((LCNPHY_TX_PWR_CTRL_OFF == mode) ||
(LCNPHY_TX_PWR_CTRL_SW == mode) ||
(LCNPHY_TX_PWR_CTRL_HW == mode) ||
(LCNPHY_TX_PWR_CTRL_TEMPBASED == mode));

mode = wlc_lcnphy_set_tx_pwr_ctrl_mode(pi, mode);
old_mode = wlc_lcnphy_set_tx_pwr_ctrl_mode(pi, old_mode);

Expand Down Expand Up @@ -1904,16 +1897,14 @@ wlc_lcnphy_tx_iqlo_cal(phy_info_t *pi,
break;

case LCNPHY_CAL_RECAL:
ASSERT(pi_lcn->lcnphy_cal_results.txiqlocal_bestcoeffs_valid);

start_coeffs = syst_coeffs;

cal_cmds = commands_recal;
n_cal_cmds = ARRAY_SIZE(commands_recal);
command_nums = command_nums_recal;
break;

default:
ASSERT(false);
break;
}

wlc_lcnphy_common_write_table(pi, LCNPHY_TBL_ID_IQLOCAL,
Expand Down Expand Up @@ -2460,8 +2451,6 @@ void wlc_lcnphy_set_tx_pwr_by_index(phy_info_t *pi, int index)
lcnphy_txgains_t gains;
phy_info_lcnphy_t *pi_lcn = pi->u.pi_lcnphy;

ASSERT(index <= LCNPHY_MAX_TX_POWER_INDEX);

pi_lcn->lcnphy_tx_power_idx_override = (s8) index;
pi_lcn->lcnphy_current_index = (u8) index;

Expand Down Expand Up @@ -2760,7 +2749,6 @@ wlc_lcnphy_start_tx_tone(phy_info_t *pi, s32 f_kHz, u16 max_val,
do {
bw = phy_bw * 1000 * k;
num_samps = bw / ABS(f_kHz);
ASSERT(num_samps <= ARRAY_SIZE(data_buf));
k++;
} while ((num_samps * (u32) (ABS(f_kHz))) != bw);
} else
Expand Down Expand Up @@ -3298,8 +3286,6 @@ wlc_lcnphy_rx_iq_cal(phy_info_t *pi, const lcnphy_rx_iqcomp_t *iqcomp,
return false;
}
if (module == 2) {
ASSERT(iqcomp_sz);

while (iqcomp_sz--) {
if (iqcomp[iqcomp_sz].chan ==
CHSPEC_CHANNEL(pi->radio_chanspec)) {
Expand All @@ -3313,7 +3299,6 @@ wlc_lcnphy_rx_iq_cal(phy_info_t *pi, const lcnphy_rx_iqcomp_t *iqcomp,
break;
}
}
ASSERT(result);
goto cal_done;
}

Expand Down Expand Up @@ -3584,9 +3569,6 @@ void wlc_lcnphy_calib_modes(phy_info_t *pi, uint mode)
if (wlc_lcnphy_tempsense_based_pwr_ctrl_enabled(pi))
wlc_lcnphy_tx_power_adjustment((wlc_phy_t *) pi);
break;
default:
ASSERT(0);
break;
}
}

Expand Down Expand Up @@ -5072,8 +5054,6 @@ bool wlc_phy_attach_lcnphy(phy_info_t *pi)
}

pi->xtalfreq = si_alp_clock(pi->sh->sih);
ASSERT(0 == (pi->xtalfreq % 1000));

pi_lcn->lcnphy_papd_rxGnCtrl_init = 0;

pi->pi_fptr.init = wlc_phy_init_lcnphy;
Expand Down Expand Up @@ -5293,9 +5273,7 @@ wlc_lcnphy_load_tx_iir_filter(phy_info_t *pi, bool is_ofdm, s16 filt_type)
}
}

if (filt_index == -1) {
ASSERT(false);
} else {
if (filt_index != -1) {
for (j = 0; j < LCNPHY_NUM_DIG_FILT_COEFFS; j++) {
write_phy_reg(pi, addr[j],
LCNPHY_txdigfiltcoeffs_cck
Expand All @@ -5310,9 +5288,7 @@ wlc_lcnphy_load_tx_iir_filter(phy_info_t *pi, bool is_ofdm, s16 filt_type)
}
}

if (filt_index == -1) {
ASSERT(false);
} else {
if (filt_index != -1) {
for (j = 0; j < LCNPHY_NUM_DIG_FILT_COEFFS; j++) {
write_phy_reg(pi, addr_ofdm[j],
LCNPHY_txdigfiltcoeffs_ofdm
Expand Down

0 comments on commit 7786f2c

Please sign in to comment.