diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-11-14 01:31:33 +0700 |
---|---|---|
committer | fixeria <vyanitskiy@sysmocom.de> | 2023-11-14 12:22:21 +0000 |
commit | 25aae40e17476f3650c1ec7f52b9106e1411b5de (patch) | |
tree | ee767e39b367ce4d61a3bd718986f4344ddae814 | |
parent | dc3b78da011a316e5823c83bf88f0710baec0114 (diff) |
osmo-bts-trx: use BPLEN macro instead of magic numbers
Change-Id: I7d89b2e50c7eeb54b734c4959eeeb1c63a51a315
-rw-r--r-- | src/osmo-bts-trx/sched_lchan_xcch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bts-trx/sched_lchan_xcch.c b/src/osmo-bts-trx/sched_lchan_xcch.c index b36f4e8f..a1a5e304 100644 --- a/src/osmo-bts-trx/sched_lchan_xcch.c +++ b/src/osmo-bts-trx/sched_lchan_xcch.c @@ -38,7 +38,7 @@ /* Add two arrays of sbits */ static void add_sbits(sbit_t *current, const sbit_t *previous) { - for (unsigned int i = 0; i < 464; i++) + for (unsigned int i = 0; i < BPLEN * 4; i++) current[i] = current[i] / 2 + previous[i] / 2; } @@ -67,7 +67,7 @@ int rx_data_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi) /* clear burst & store frame number of first burst */ if (bi->bid == 0) { - memset(bursts_p, 0, 464); + memset(bursts_p, 0, BPLEN * 4); *mask = 0x0; *first_fn = bi->fn; } @@ -138,7 +138,7 @@ int rx_data_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi) /* Keep a copy to ease decoding in the next repetition pass */ if (rep_sacch) - memcpy(chan_state->ul_bursts_prev, bursts_p, 464); + memcpy(chan_state->ul_bursts_prev, bursts_p, BPLEN * 4); return _sched_compose_ph_data_ind(l1ts, *first_fn, bi->chan, &l2[0], l2_len, |