aboutsummaryrefslogtreecommitdiffstats
path: root/tests/nanobts_omlattr/nanobts_omlattr_test.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-06-16 19:29:50 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-06-26 23:57:13 +0200
commit7a93d0712abfa25e369c4272a65402d455dab78d (patch)
treee80b1020e972845cd7c76a4507eaf15763b0a5fc /tests/nanobts_omlattr/nanobts_omlattr_test.c
parent6f3cd4db164d4bbb53f2677c985e3346acd02298 (diff)
add gsm_timers, for Tnnn definitions usable by FSMs
Diffstat (limited to 'tests/nanobts_omlattr/nanobts_omlattr_test.c')
-rw-r--r--tests/nanobts_omlattr/nanobts_omlattr_test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/nanobts_omlattr/nanobts_omlattr_test.c b/tests/nanobts_omlattr/nanobts_omlattr_test.c
index 72dabe542..7a3a80e2d 100644
--- a/tests/nanobts_omlattr/nanobts_omlattr_test.c
+++ b/tests/nanobts_omlattr/nanobts_omlattr_test.c
@@ -21,6 +21,7 @@
#include <osmocom/bsc/debug.h>
#include <osmocom/bsc/gsm_data.h>
+#include <osmocom/bsc/gsm_timers.h>
#include <osmocom/bsc/bts_ipaccess_nanobts_omlattr.h>
#include <osmocom/core/talloc.h>
@@ -191,6 +192,13 @@ static const struct log_info log_info = {
.num_cat = ARRAY_SIZE(log_categories),
};
+static struct T_def gsm_network_T_defs[] = {
+ { .T=3105, .default_val=100, .val=13, .unit=T_MS, .desc="Physical Information" },
+ { .T=3212, .default_val=5, .unit=T_CUSTOM,
+ .desc="Periodic Location Update timer, sent to MS (1 = 6 minutes)" },
+ {}
+};
+
int main(int argc, char **argv)
{
void *ctx;
@@ -207,6 +215,7 @@ int main(int argc, char **argv)
/* Allocate environmental structs (bts, net, trx) */
net = talloc_zero(ctx, struct gsm_network);
INIT_LLIST_HEAD(&net->bts_list);
+ net->T_defs = gsm_network_T_defs;
gsm_bts_model_register(&bts_model_nanobts);
bts = gsm_bts_alloc_register(net, GSM_BTS_TYPE_NANOBTS, 63);
OSMO_ASSERT(bts);