hodec2: remove code dup of rxlev averaging

Change-Id: Ic49b94ea243898535c82018c14df8a3ba216ea83
This commit is contained in:
Neels Hofmeyr 2021-05-26 17:58:56 +02:00
parent 7c4e6cc221
commit d514f639fc
1 changed files with 1 additions and 4 deletions

View File

@ -1439,10 +1439,7 @@ static void on_measurement_report(struct gsm_meas_rep *mr)
}
/* get average levels. if not enough measurements yet, value is < 0 */
av_rxlev = get_meas_rep_avg(lchan,
ho_get_hodec2_full_tdma(bts->ho) ?
MEAS_REP_DL_RXLEV_FULL : MEAS_REP_DL_RXLEV_SUB,
ho_get_hodec2_rxlev_avg_win(bts->ho));
av_rxlev = current_rxlev(lchan);
av_rxqual = get_meas_rep_avg(lchan,
ho_get_hodec2_full_tdma(bts->ho) ?
MEAS_REP_DL_RXQUAL_FULL : MEAS_REP_DL_RXQUAL_SUB,