aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-07-21 12:24:48 +0200
committerlaforge <laforge@gnumonks.org>2019-08-02 07:30:58 +0000
commitcb0cb897add108689c6dc0100ac415b04c006445 (patch)
tree191553b89e077690dcb36b1b5cea052a6d6af97e
parente8e864b2191a025a1f7cf1826e0dd9ac79857c51 (diff)
scheduler_trx: Handle negative return of gsm0503_tch_hr_decode()
If gsm0503_tch_hr_decode() returns a negative error, we shouldn't set the marker bit or pass the negative value as length value into osmo_hr_check_sid(). Change-Id: If49ca6926c576a2b17507b6a95b6f3ca17877d66 Closes: CID#187645
-rw-r--r--src/osmo-bts-trx/scheduler_trx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index 532eca54..ef241195 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -1393,7 +1393,7 @@ int rx_tchh_fn(struct l1sched_trx *l1t, enum trx_chan_type chan,
*/
rc = gsm0503_tch_hr_decode(tch_data, *bursts_p,
fn_is_odd, &n_errors, &n_bits_total);
- if (rc) /* DTXu */
+ if (rc >= 0) /* DTXu */
lchan_set_marker(osmo_hr_check_sid(tch_data, rc), lchan);
break;
case GSM48_CMODE_SPEECH_AMR: /* AMR */