aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2014-01-14 12:10:44 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2014-04-06 08:58:30 +0200
commiteeff81eb07c271bde2fccea75e0db7d3f228faf3 (patch)
tree37ae4417c84118bb2bc1a7515829df5bcf22e61c
parentb95a7ccd911902be2f037486c1b4cc7f0566c8a1 (diff)
trx: Set lchan inactive, only if the dedicated channel is deactivated
-rw-r--r--src/osmo-bts-trx/l1_if.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/osmo-bts-trx/l1_if.c b/src/osmo-bts-trx/l1_if.c
index 4021b70a..82f50912 100644
--- a/src/osmo-bts-trx/l1_if.c
+++ b/src/osmo-bts-trx/l1_if.c
@@ -572,11 +572,10 @@ int bts_model_l1sap_down(struct gsm_bts_trx *trx, struct osmo_phsap_prim *l1sap)
}
/* deactivate associated channel */
trx_sched_set_lchan(l1h, chan_nr, 0x40, 0);
- /* set lchan inactive
- * (also if only sacch, so no meaurement is done) */
- lchan_set_state(lchan, LCHAN_S_NONE);
- /* deactivate dedicated channel */
if (!l1sap->u.info.u.act_req.sacch_only) {
+ /* set lchan inactive */
+ lchan_set_state(lchan, LCHAN_S_NONE);
+ /* deactivate dedicated channel */
trx_sched_set_lchan(l1h, chan_nr, 0x00, 0);
/* confirm only on dedicated channel */
mph_info_chan_confirm(l1h, chan_nr,