summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-07-25 21:25:50 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-07-26 00:50:26 +0700
commit029c9297a01b7c361a1c76cabb728a14bfc02d27 (patch)
tree1085bad5482b8be663085f0cfa1688dd2bef7da2
parent18d102d3d738fc4900c11fcb45dd768b8edf1b37 (diff)
trxcon: pass lchan to tchh_block_dl_first_fn() for logging
-rw-r--r--src/host/trxcon/src/sched_lchan_tchh.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/host/trxcon/src/sched_lchan_tchh.c b/src/host/trxcon/src/sched_lchan_tchh.c
index 2b4b6825..a8c641bc 100644
--- a/src/host/trxcon/src/sched_lchan_tchh.c
+++ b/src/host/trxcon/src/sched_lchan_tchh.c
@@ -149,9 +149,10 @@ bool l1sched_tchh_block_map_fn(enum l1sched_lchan_type chan,
* @return either frame number of the first burst,
* or fn=last_fn if calculation failed
*/
-static uint32_t tchh_block_dl_first_fn(enum l1sched_lchan_type chan,
+static uint32_t tchh_block_dl_first_fn(const struct l1sched_lchan_state *lchan,
uint32_t last_fn, bool facch)
{
+ enum l1sched_lchan_type chan = lchan->type;
uint8_t fn_mf, fn_diff;
int i = 0;
@@ -182,11 +183,9 @@ static uint32_t tchh_block_dl_first_fn(enum l1sched_lchan_type chan,
BLOCK_FIRST_FN(tch_h1_traffic_block_map);
}
-#if 0
LOGP_LCHAND(lchan, LOGL_ERROR,
"Failed to calculate TDMA frame number of the first burst of %s block, "
"using the current fn=%u\n", facch ? "FACCH/H" : "TCH/H", last_fn);
-#endif
/* Couldn't calculate the first fn, return the last */
return last_fn;
@@ -331,7 +330,7 @@ bfi:
/* Didn't try to decode, fake measurements */
if (n_errors < 0) {
lchan->meas_avg = (struct l1sched_meas_set) {
- .fn = tchh_block_dl_first_fn(lchan->type, fn, false),
+ .fn = tchh_block_dl_first_fn(lchan, fn, false),
.toa256 = 0,
.rssi = -110,
};