diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-06-25 18:07:19 +0700 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-06-26 16:19:30 +0000 |
commit | f3f0638066331adb19a1d32f8a6d01dcbac14c1b (patch) | |
tree | 565ad18cb7924d379d3dc1055ced068869588c73 /src/osmo-bts-trx | |
parent | 2931fc337fd3ac86e9e113482066549145a6e230 (diff) |
osmo-bts-trx/scheduler: get rid of _sched_fcch_burst
According to 3GPP 45.002, section 5.2.4, a frequency correction
burst is basically a sequence of zeros. Since br->burst is already
zero-initialized, there is no need to maintain and memcpy() another
sequence of zeros into it. Just set the length.
Change-Id: Ic4f6d550010da5caf4bc471ff1e184c9fab30c6d
Diffstat (limited to 'src/osmo-bts-trx')
-rw-r--r-- | src/osmo-bts-trx/sched_lchan_fcch_sch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/sched_lchan_fcch_sch.c b/src/osmo-bts-trx/sched_lchan_fcch_sch.c index bc03f816..2a5e482b 100644 --- a/src/osmo-bts-trx/sched_lchan_fcch_sch.c +++ b/src/osmo-bts-trx/sched_lchan_fcch_sch.c @@ -40,7 +40,8 @@ int tx_fcch_fn(struct l1sched_trx *l1t, enum trx_chan_type chan, { LOGL1S(DL1P, LOGL_DEBUG, l1t, br->tn, chan, br->fn, "Transmitting FCCH\n"); - memcpy(br->burst, _sched_fcch_burst, GSM_BURST_LEN); + /* A frequency correction burst is basically a sequence of zeros. + * Since br->burst is already zero-initialized, just set the length. */ br->burst_len = GSM_BURST_LEN; return 0; |