aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-10-04 01:07:41 +0700
committerfixeria <vyanitskiy@sysmocom.de>2022-10-04 14:57:57 +0000
commit493ff0000bc2bdd60357d1b0c21f6fe0e3bf1232 (patch)
treec267b7a8bc9ff68619c33d2bd81cedc67620444c
parent8396471638d95318d41b85bf7f3e4ad7eee678ea (diff)
osmo-bts-trx: rx_rach_fn(): properly detect handover RACH
Checking if (bi->chan != TRXC_RACH) is not enough to detect HANDOVER ACCESS. Receiving this message is only possible on CS channels. Change-Id: Ice1674fd4fed8c54d605ff19d568f6e46b4c5783
-rw-r--r--src/osmo-bts-trx/sched_lchan_rach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/sched_lchan_rach.c b/src/osmo-bts-trx/sched_lchan_rach.c
index 5d9d0b1e..11ba1572 100644
--- a/src/osmo-bts-trx/sched_lchan_rach.c
+++ b/src/osmo-bts-trx/sched_lchan_rach.c
@@ -137,7 +137,7 @@ int rx_rach_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi)
LOGL1SB(DL1P, LOGL_DEBUG, l1ts, bi,
"Received%s RACH (%s): rssi=%d toa256=%d",
- (bi->chan != TRXC_RACH) ? " handover" : "",
+ TRX_CHAN_IS_DEDIC(bi->chan) ? " handover" : "",
get_value_string(rach_synch_seq_names, synch_seq),
bi->rssi, bi->toa256);
if (bi->flags & TRX_BI_F_CI_CB)