From cdf20fec7c4729e81b1c6c78147dc8aaa74682e3 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 24 Jun 2017 18:02:42 +0200 Subject: TRX: Rename trx_if_data() -> trx_if_send_burst() The new name makes it clear what the function actually does: Send burst data via the trx interface. Change-Id: I5031541d4ae4244a62a18acf71139db2874927fa --- src/osmo-bts-trx/scheduler_trx.c | 2 +- src/osmo-bts-trx/trx_if.c | 2 +- src/osmo-bts-trx/trx_if.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c index 9c87643a..a9bcbda3 100644 --- a/src/osmo-bts-trx/scheduler_trx.c +++ b/src/osmo-bts-trx/scheduler_trx.c @@ -1398,7 +1398,7 @@ static int trx_sched_fn(struct gsm_bts *bts, uint32_t fn) } else gain = 0; if (nbits) - trx_if_data(l1h, tn, fn, gain, bits, nbits); + trx_if_send_burst(l1h, tn, fn, gain, bits, nbits); } } diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c index 2486894a..ba2908ad 100644 --- a/src/osmo-bts-trx/trx_if.c +++ b/src/osmo-bts-trx/trx_if.c @@ -498,7 +498,7 @@ static int trx_data_read_cb(struct osmo_fd *ofd, unsigned int what) * \param[in] bits Unpacked bits to be transmitted * \param[in] nbits Number of \a bits * \returns 0 on success; negative on error */ -int trx_if_data(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr, +int trx_if_send_burst(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr, const ubit_t *bits, uint16_t nbits) { uint8_t buf[TRX_MAX_BURST_LEN]; diff --git a/src/osmo-bts-trx/trx_if.h b/src/osmo-bts-trx/trx_if.h index 05e8bff5..93ea1800 100644 --- a/src/osmo-bts-trx/trx_if.h +++ b/src/osmo-bts-trx/trx_if.h @@ -29,7 +29,7 @@ int trx_if_cmd_rxtune(struct trx_l1h *l1h, uint16_t arfcn); int trx_if_cmd_txtune(struct trx_l1h *l1h, uint16_t arfcn); int trx_if_cmd_handover(struct trx_l1h *l1h, uint8_t tn, uint8_t ss); int trx_if_cmd_nohandover(struct trx_l1h *l1h, uint8_t tn, uint8_t ss); -int trx_if_data(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr, +int trx_if_send_burst(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, uint8_t pwr, const ubit_t *bits, uint16_t nbits); int trx_if_open(struct trx_l1h *l1h); void trx_if_flush(struct trx_l1h *l1h); -- cgit v1.2.3