aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMychaela N. Falconia <falcon@freecalypso.org>2023-05-26 22:05:15 +0000
committerMychaela N. Falconia <falcon@freecalypso.org>2023-05-26 22:05:15 +0000
commit4b945ec3279a4d95516979da05f02fa76f153eb6 (patch)
treee066e4425737194e487b6fc39cd7b9358324de22
parent1160cabefb2326aaf7f17573ef36859c9bce0d38 (diff)
trx: fix HR1 codec breakage from format change
As of commit 1160cabefb23, the common layer of osmo-bts accepts both TS 101 318 and RFC 5993 formats for HR1 codec, and always passes the more basic TS 101 318 format to the BTS model. Unfortunately, osmo-bts-trx has model-specific code checking the payload length that was overlooked in that patch, causing breakage. Fix that bug. (The actual channel encoding function in libosmocoding already accepts 14-byte payloads.) Related: OS#5688 Fixes: I702e26c3ad5b9d8347e73c6cd23efa38a3a3407e Change-Id: I0e251faeffb76d2604a4100c848141d239d1d86f
-rw-r--r--src/osmo-bts-trx/sched_lchan_tchf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/sched_lchan_tchf.c b/src/osmo-bts-trx/sched_lchan_tchf.c
index 43a37844..0d0f52af 100644
--- a/src/osmo-bts-trx/sched_lchan_tchf.c
+++ b/src/osmo-bts-trx/sched_lchan_tchf.c
@@ -390,7 +390,7 @@ struct msgb *tch_dl_dequeue(struct l1sched_ts *l1ts, struct trx_dl_burst_req *br
switch (tch_mode) {
case GSM48_CMODE_SPEECH_V1: /* FR / HR */
if (br->chan != TRXC_TCHF) /* HR */
- len = GSM_HR_BYTES_RTP_RFC5993;
+ len = GSM_HR_BYTES;
else
len = GSM_FR_BYTES;
break;