aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-04-11 05:58:24 +0300
committerfixeria <vyanitskiy@sysmocom.de>2022-04-13 15:03:20 +0000
commit7af62e2d0ffd68102445b13b817a5db910e3cd41 (patch)
tree4a3aa90202096f7af8832e190fef8d0e9e09b963
parent9ae443d368c2f3fcb3e2fca38983fd37922faeb2 (diff)
l1sap: l1sap_chan_act(): alloc DTX FSM only for TCH
-rw-r--r--src/common/l1sap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 502bcef5..6ef5e3bd 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1947,7 +1947,7 @@ int l1sap_chan_act(struct gsm_bts_trx *trx, uint8_t chan_nr, struct tlv_parsed *
return -RSL_ERR_EQUIPMENT_FAIL;
/* Init DTX DL FSM if necessary */
- if (trx->bts->dtxd && lchan->type != GSM_LCHAN_SDCCH) {
+ if (trx->bts->dtxd && lchan_is_tch(lchan)) {
lchan->tch.dtx.dl_amr_fsm = osmo_fsm_inst_alloc(&dtx_dl_amr_fsm,
tall_bts_ctx,
lchan,