aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/loops.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-11-05 23:02:55 +0100
committerHarald Welte <laforge@gnumonks.org>2015-11-05 23:02:55 +0100
commitbbcf703be844e971d9e1e58f5efedfe5c449309c (patch)
tree0d3dd1745a3f79895e6c98a85b7d5fe90ee9ddf5 /src/osmo-bts-trx/loops.c
parent94da045be57ed0023c5718a871a50c71474ee345 (diff)
TRX: catch up with trhe amr_mode naming changes
OpenBSC introduced a naming change in 615ed46a6ab25f71a7ab0d8201d33b4dbf8fc5b0 but osmo-bts fixes were only about osmo-bts-sysmo, not osmo-bts-trx. This updates osmo-bts-trx accordingly.
Diffstat (limited to 'src/osmo-bts-trx/loops.c')
-rw-r--r--src/osmo-bts-trx/loops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bts-trx/loops.c b/src/osmo-bts-trx/loops.c
index fa380555..52ac170a 100644
--- a/src/osmo-bts-trx/loops.c
+++ b/src/osmo-bts-trx/loops.c
@@ -286,7 +286,7 @@ int trx_loop_amr_input(struct trx_l1h *l1h, uint8_t chan_nr,
if (chan_state->dl_cmr > 0) {
/* degrade, if ber is above threshold FIXME: C/I */
if (ber >
- lchan->tch.amr_mr.mode[chan_state->dl_cmr-1].threshold_bts) {
+ lchan->tch.amr_mr.bts_mode[chan_state->dl_cmr-1].threshold) {
LOGP(DLOOP, LOGL_DEBUG, "Degrading due to BER %.6f "
"from codec id %d to %d of trx=%u "
"chan_nr=0x%02x\n", ber, chan_state->dl_cmr,
@@ -301,8 +301,8 @@ int trx_loop_amr_input(struct trx_l1h *l1h, uint8_t chan_nr,
if (chan_state->dl_cmr < chan_state->codecs - 1) {
/* degrade, if ber is above threshold FIXME: C/I*/
if (ber <
- lchan->tch.amr_mr.mode[chan_state->dl_cmr].threshold_bts
- - lchan->tch.amr_mr.mode[chan_state->dl_cmr].hysteresis_bts) {
+ lchan->tch.amr_mr.bts_mode[chan_state->dl_cmr].threshold
+ - lchan->tch.amr_mr.bts_mode[chan_state->dl_cmr].hysteresis) {
LOGP(DLOOP, LOGL_DEBUG, "Upgrading due to BER %.6f "
"from codec id %d to %d of trx=%u "
"chan_nr=0x%02x\n", ber, chan_state->dl_cmr,