aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-11-03 13:39:00 +0100
committerMax <msuraev@sysmocom.de>2016-11-08 12:22:40 +0100
commit9f936344eab060d11e65660b18e1deef54d34723 (patch)
tree00a65d71ba4c7dc13afa0dcca3135f2727f4e2e6 /src/common/l1sap.c
parent57b5fb88191e8eec2ad8f555293f48d39933966e (diff)
DTX DL: tighten check for enabled operation
Introduce dtx_dl_amr_enabled() function which checks that DTX is enabled and FSM is allocated and use it for all corresponding checks. Change-Id: Ifa68b641265ed14f242765c85e40da2d1021a541
Diffstat (limited to 'src/common/l1sap.c')
-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 ef248009..a7f84c53 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -610,7 +610,7 @@ static int l1sap_ph_rts_ind(struct gsm_bts_trx *trx,
memcpy(p, pp.oph.msg->data, GSM_MACBLOCK_LEN);
/* check if it is a RR CIPH MODE CMD. if yes, enable RX ciphering */
check_for_ciph_cmd(pp.oph.msg, lchan, chan_nr);
- if (dtxd_facch && lchan->tch.dtx.dl_amr_fsm)
+ if (dtxd_facch && dtx_dl_amr_enabled(lchan))
osmo_fsm_inst_dispatch(lchan->tch.dtx.dl_amr_fsm,
E_FACCH,
(void *)lchan);