trxcon: make [l1sched_]tchh_block_dl_first_fn() static

Change-Id: Ic3b990aaa1a3a3e13a80a63e1933799e58e7158f
changes/89/28789/4
Vadim Yanitskiy 7 months ago
parent 8f9e9806e6
commit 18d102d3d7
  1. 2
      src/host/trxcon/include/osmocom/bb/l1sched/l1sched.h
  2. 6
      src/host/trxcon/src/sched_lchan_tchh.c

@ -466,8 +466,6 @@ const char *l1sched_burst_mask2str(const uint8_t *mask, int bits);
size_t l1sched_bad_frame_ind(uint8_t *l2, struct l1sched_lchan_state *lchan);
/* Interleaved TCH/H block TDMA frame mapping */
uint32_t l1sched_tchh_block_dl_first_fn(enum l1sched_lchan_type chan,
uint32_t last_fn, bool facch);
bool l1sched_tchh_block_map_fn(enum l1sched_lchan_type chan,
uint32_t fn, bool ul, bool facch, bool start);

@ -149,8 +149,8 @@ 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
*/
uint32_t l1sched_tchh_block_dl_first_fn(enum l1sched_lchan_type chan,
uint32_t last_fn, bool facch)
static uint32_t tchh_block_dl_first_fn(enum l1sched_lchan_type chan,
uint32_t last_fn, bool facch)
{
uint8_t fn_mf, fn_diff;
int i = 0;
@ -331,7 +331,7 @@ bfi:
/* Didn't try to decode, fake measurements */
if (n_errors < 0) {
lchan->meas_avg = (struct l1sched_meas_set) {
.fn = l1sched_tchh_block_dl_first_fn(lchan->type, fn, false),
.fn = tchh_block_dl_first_fn(lchan->type, fn, false),
.toa256 = 0,
.rssi = -110,
};

Loading…
Cancel
Save