aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/scheduler_trx.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-02-08 16:42:48 +0100
committerMax <msuraev@sysmocom.de>2018-02-08 16:42:48 +0100
commitc2e3ff58bcd4203fb3426b99c986e71386fbd2b4 (patch)
treec46eaf903eaf68f101c8c4995a462df780db071f /src/osmo-bts-trx/scheduler_trx.c
parent322cfc49427209e5b686e85c4e5f8eb08037819a (diff)
osmo-bts-trx: init nbits to know value
It seems like some of the functions invoked by _sched_dl_burst() do not sent nbits properly. This leads to a number of errors on startup: trx_if.c:593 Tx burst length 65535 invalid It happens in conjunction with: Transceiver.cpp:382:pushRadioVector: dumping STALE burst in TRX->USRP interface Let's fix this by initializing nbits to 0 to make sure those bursts are properly ignored. Change-Id: Iaf85826861163c185925de528c8347ab22779e30
Diffstat (limited to 'src/osmo-bts-trx/scheduler_trx.c')
-rw-r--r--src/osmo-bts-trx/scheduler_trx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index 0f3272e7..f53e4828 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -1300,7 +1300,7 @@ static int trx_sched_fn(struct gsm_bts *bts, uint32_t fn)
uint8_t tn;
const ubit_t *bits;
uint8_t gain;
- uint16_t nbits;
+ uint16_t nbits = 0;
/* send time indication */
l1if_mph_time_ind(bts, fn);