aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/scheduler_trx.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-10-02 23:16:57 +0700
committerlaforge <laforge@osmocom.org>2019-10-04 15:53:53 +0000
commit0772cd04600668658db80e03cdcc1e51f1658de0 (patch)
tree64d9d5e661ecc796b29fb8a2783526a50c81cfc2 /src/osmo-bts-trx/scheduler_trx.c
parentdf5b813c0f4aeb9ac9a45c22722b27366a77faf7 (diff)
osmo-bts-trx/scheduler: also detect TSC for Access Bursts on PDCH
If a logical channel, on which an Access Burst has been received, is not either of RACH, PDTCH or PTCCH, then this is a handover Access Burst, which is always encoded as 8-bit and shall contain the generic training sequence (TS0). Access Bursts on a PDCH time-slot are not related to handover. Change-Id: If7d6135d6c4d7f9bd71d9fab6f8adc3f8cfd10ea
Diffstat (limited to 'src/osmo-bts-trx/scheduler_trx.c')
-rw-r--r--src/osmo-bts-trx/scheduler_trx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index 8b0c761c..421cf16d 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -796,9 +796,10 @@ int rx_rach_fn(struct l1sched_trx *l1t, enum trx_chan_type chan,
enum rach_synch_seq_t synch_seq = RACH_SYNCH_SEQ_TS0;
int best_score = 127 * RACH_SYNCH_SEQ_LEN;
- /* If chan != TRXC_RACH, this is a handover RACH, which is always encoded
- * as 8-bit and should contain the generic training sequence (TS0). */
- if (chan == TRXC_RACH) {
+ /* If logical channel is not either of RACH, PDTCH or PTCCH, this is a
+ * handover Access Burst, which is always encoded as 8-bit and shall
+ * contain the generic training sequence (TS0). */
+ if (chan == TRXC_RACH || chan == TRXC_PDTCH || chan == TRXC_PTCCH) {
if (bi->flags & TRX_BI_F_TS_INFO)
synch_seq = (enum rach_synch_seq_t) bi->tsc;
else