diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-06-12 16:53:55 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2014-01-21 15:54:23 +0100 |
commit | f00132e92991b144e92052fd08cb2d29c6d2ec2a (patch) | |
tree | 9172a7ea2fb3fd06aab5d95c47357e7d0d57a18d | |
parent | 8aac9efafcb0edf9a0ef86adbc648456b834b121 (diff) |
TRX: Disable handover burst detection when closing channel during detection
-rw-r--r-- | src/osmo-bts-trx/scheduler.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/scheduler.c b/src/osmo-bts-trx/scheduler.c index 13e14e8b..9aa05390 100644 --- a/src/osmo-bts-trx/scheduler.c +++ b/src/osmo-bts-trx/scheduler.c @@ -2471,6 +2471,7 @@ int trx_sched_set_lchan(struct trx_l1h *l1h, uint8_t chan_nr, uint8_t link_id, int active) { uint8_t tn = L1SAP_CHAN2TS(chan_nr); + uint8_t ss = l1sap_chan2ss(chan_nr); int i; int rc = -EINVAL; struct trx_chan_state *chan_state; @@ -2497,6 +2498,12 @@ int trx_sched_set_lchan(struct trx_l1h *l1h, uint8_t chan_nr, uint8_t link_id, } } + /* disable handover detection (on deactivation) */ + if (l1h->ho_rach_detect[tn][ss]) { + l1h->ho_rach_detect[tn][ss] = 0; + trx_if_cmd_nohandover(l1h, tn, ss); + } + return rc; } |