From c2e3ff58bcd4203fb3426b99c986e71386fbd2b4 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 8 Feb 2018 16:42:48 +0100 Subject: 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 --- src/osmo-bts-trx/scheduler_trx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/osmo-bts-trx/scheduler_trx.c') 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); -- cgit v1.2.3