diff options
author | Max <msuraev@sysmocom.de> | 2016-11-04 16:52:35 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2016-11-08 12:28:52 +0100 |
commit | 5ee3dba39f241c5551196e8f167b907b9920355e (patch) | |
tree | 1e7a0fcc6acebdeb52f6f4f915330660ec42aa22 /src/common/l1sap.c | |
parent | 9f936344eab060d11e65660b18e1deef54d34723 (diff) |
DTX: wrap FSM signal dispatching
Make wrapper function which checks that DTX is enabled for lchan before
dispatching any events.
Change-Id: Id8b519c4af6d505ec9a4b9aadd5107bf7af53d66
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r-- | src/common/l1sap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c index a7f84c53..71c4b0bb 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -610,10 +610,8 @@ 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 && dtx_dl_amr_enabled(lchan)) - osmo_fsm_inst_dispatch(lchan->tch.dtx.dl_amr_fsm, - E_FACCH, - (void *)lchan); + if (dtxd_facch) + dtx_dispatch(lchan, E_FACCH); } msgb_free(pp.oph.msg); } |