diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-06-12 16:53:55 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-09-22 16:41:29 +0200 |
commit | db0b93ac3967f12b519ca4e2528e30aacd59ce72 (patch) | |
tree | b00689928be18328aa1b9d3dcf4d358460aebcc8 /src | |
parent | 86c936cbb104cbac0994895bef03d8808ba032d4 (diff) |
TRX: Disable handover burst detection when closing channel during detection
Diffstat (limited to 'src')
-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; } |