aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/main.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-09-27 16:44:14 +0200
committerpespin <pespin@sysmocom.de>2019-10-05 20:50:13 +0000
commitaccbf5bc732462a1564371dcbbde2f0dc5c23544 (patch)
treefe1d3e66e27d653996a39b4f4b79a31e19eeff71 /src/osmo-bts-trx/main.c
parent972c24314694396c9b66fd8175cdcd40f01bdd39 (diff)
bts-trx: Allocate struct osmo_trx_clock_state as part of bts-trx private data
Diffstat (limited to 'src/osmo-bts-trx/main.c')
-rw-r--r--src/osmo-bts-trx/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/main.c b/src/osmo-bts-trx/main.c
index b1fa2079..cf40ea3f 100644
--- a/src/osmo-bts-trx/main.c
+++ b/src/osmo-bts-trx/main.c
@@ -97,6 +97,10 @@ int bts_model_handle_options(int argc, char **argv)
int bts_model_init(struct gsm_bts *bts)
{
+ struct bts_trx_priv *bts_trx = talloc_zero(bts, struct bts_trx_priv);
+ bts_trx->clk_s.fn_timer_ofd.fd = -1;
+
+ bts->model_priv = bts_trx;
bts->variant = BTS_OSMO_TRX;
bts->support.ciphers = CIPHER_A5(1) | CIPHER_A5(2) | CIPHER_A5(3);