diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-06-12 16:53:55 +0200 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2014-04-06 08:58:09 +0200 |
commit | f6b615cfd0755cc8faf31eef5f4160d083a96dfe (patch) | |
tree | 8cf4d39b4d5e40bb73e62d754575744be0aa9453 | |
parent | bb01d7077761a222b5c72598f0dd61718dc09c37 (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; } |