aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-05-27 22:49:08 +0700
committerfixeria <vyanitskiy@sysmocom.de>2023-05-30 11:08:25 +0000
commit3302d4adfe7c01923657284f35527871852b83fe (patch)
tree606738f51462b45eff3d4403bc045c3e30aab471
parent405368b6974e4da9b0775f557330833e13f069d4 (diff)
osmo-bts-trx: tch_dl_dequeue(): do not drop CSD frames
-rw-r--r--src/osmo-bts-trx/sched_lchan_tchf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/sched_lchan_tchf.c b/src/osmo-bts-trx/sched_lchan_tchf.c
index 7c2a05f7..f0658038 100644
--- a/src/osmo-bts-trx/sched_lchan_tchf.c
+++ b/src/osmo-bts-trx/sched_lchan_tchf.c
@@ -374,8 +374,8 @@ struct msgb *tch_dl_dequeue(struct l1sched_ts *l1ts, struct trx_dl_burst_req *br
int8_t sti, cmi;
bool amr_is_cmr;
- if (rsl_cmode != RSL_CMOD_SPD_SPEECH) {
- LOGL1SB(DL1P, LOGL_NOTICE, l1ts, br, "Dropping speech frame, "
+ if (OSMO_UNLIKELY(rsl_cmode == RSL_CMOD_SPD_SIGN)) {
+ LOGL1SB(DL1P, LOGL_NOTICE, l1ts, br, "Dropping a TCH frame, "
"because we are not in speech mode\n");
goto free_bad_msg;
}