aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-omldummy/main.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-06-02 22:29:47 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-06-02 22:29:56 +0700
commit9daa67d0e7f3294918aa632d0a6eb237b2cd87f8 (patch)
tree15ea8bc9fcc14ed4e7fb87e41ff48f602b4897de /src/osmo-bts-omldummy/main.c
parent94dee951200b4abfb721a0815cc7e8e2f75bb2a1 (diff)
osmo-bts-omldummy: make number of transceivers configurable
Diffstat (limited to 'src/osmo-bts-omldummy/main.c')
-rw-r--r--src/osmo-bts-omldummy/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osmo-bts-omldummy/main.c b/src/osmo-bts-omldummy/main.c
index 8933860e..22d8758d 100644
--- a/src/osmo-bts-omldummy/main.c
+++ b/src/osmo-bts-omldummy/main.c
@@ -15,12 +15,13 @@ int main(int argc, char **argv)
int i;
if (argc < 3) {
- fprintf(stderr, "Usage: %s dst_host site_id\n", argv[0]);
+ fprintf(stderr, "Usage: %s dst_host site_id [trx_num]\n", argv[0]);
return 1;
}
char *dst_host = argv[1];
int site_id = atoi(argv[2]);
+ int trx_num = argc > 3 ? atoi(argv[3]) : 8;
tall_bts_ctx = talloc_named_const(NULL, 1, "OsmoBTS context");
msgb_talloc_ctx_init(tall_bts_ctx, 10*1024);
@@ -34,7 +35,7 @@ int main(int argc, char **argv)
bts->ip_access.bts_id = 0;
/* Additional TRXs */
- for (i = 1; i < 8; i++) {
+ for (i = 1; i < trx_num; i++) {
trx = gsm_bts_trx_alloc(bts);
if (!trx)
exit(1);