aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-05-27 21:30:57 +0200
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-05-27 21:31:09 +0200
commita179a9434ad001ec8bc4a3322b92d4fa0dcdd047 (patch)
treefd5e82d9f9d43d62c862fd98ef380d75528ef929 /src
parent949874433ffacb472601dd91a1674172366f8841 (diff)
Fix regression in 'osmo-bts-trx: rework and split up bts_sched_fn()'
In [1] I forgot to update tx_fcch_fn(), where we assume that the burst buffer is already zero-initialized and do not call memset(). This results in sending dummy bursts on FCCH (instead of zeros). Change-Id: I491b3b5702b3cfca45c12c002b41e60c629b05b9 Fixes: [1] Iec78989517865b3275a9784d1042a5ebd1d2815f
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bts-trx/sched_lchan_fcch_sch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/sched_lchan_fcch_sch.c b/src/osmo-bts-trx/sched_lchan_fcch_sch.c
index eaf140f9..44da04ce 100644
--- a/src/osmo-bts-trx/sched_lchan_fcch_sch.c
+++ b/src/osmo-bts-trx/sched_lchan_fcch_sch.c
@@ -40,8 +40,8 @@ int tx_fcch_fn(struct l1sched_ts *l1ts, struct trx_dl_burst_req *br)
{
LOGL1SB(DL1P, LOGL_DEBUG, l1ts, br, "Transmitting FCCH\n");
- /* A frequency correction burst is basically a sequence of zeros.
- * Since br->burst is already zero-initialized, just set the length. */
+ /* A frequency correction burst is basically a sequence of zeros */
+ memset(br->burst, 0x00, GSM_BURST_LEN);
br->burst_len = GSM_BURST_LEN;
return 0;