dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/30521 )
Change subject: sched_lchan_tchf: replace numeric constant with define constant ......................................................................
sched_lchan_tchf: replace numeric constant with define constant
An RFC 5993 HR GSM payload is 15 bytes long. That is GSM_HR_BYTES + 1
Change-Id: I7008ba7e50562e9366fd9ecc97e2e22fad4aa641 --- M src/osmo-bts-trx/sched_lchan_tchf.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/21/30521/1
diff --git a/src/osmo-bts-trx/sched_lchan_tchf.c b/src/osmo-bts-trx/sched_lchan_tchf.c index 6a6331f..eff0f63 100644 --- a/src/osmo-bts-trx/sched_lchan_tchf.c +++ b/src/osmo-bts-trx/sched_lchan_tchf.c @@ -412,7 +412,7 @@ switch (tch_mode) { case GSM48_CMODE_SPEECH_V1: /* FR / HR */ if (br->chan != TRXC_TCHF) /* HR */ - len = 15; + len = GSM_HR_BYTES + 1; /* RFC 5993 */ else len = GSM_FR_BYTES; break;