aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bs11_config.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-12-14 12:35:59 +0100
committerHarald Welte <laforge@gnumonks.org>2010-12-14 12:35:59 +0100
commit7e72fa0250bc678d9982ec23a45ad0e8435db2bd (patch)
treed97888bb0b3c6116e10298bc14b1da412fe6a870 /openbsc/src/bs11_config.c
parentdf30d40b987147110b0c1a227316f74b6113e7f3 (diff)
bs11_config: Add option to set BPORT1 in multi-drop mode
Diffstat (limited to 'openbsc/src/bs11_config.c')
-rw-r--r--openbsc/src/bs11_config.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/bs11_config.c b/openbsc/src/bs11_config.c
index 71e4aed37..803034a7b 100644
--- a/openbsc/src/bs11_config.c
+++ b/openbsc/src/bs11_config.c
@@ -585,7 +585,13 @@ static int handle_state_resp(enum abis_bs11_phase state)
sleep(1);
abis_nm_bs11_factory_logon(g_bts, 0);
command = NULL;
+ } else if (!strcmp(command, "bport1-multidrop")) {
+ abis_nm_bs11_set_bport_line_cfg(g_bts, 1, BS11_LINE_CFG_MULTIDROP);
+ sleep(1);
+ abis_nm_bs11_factory_logon(g_bts, 0);
+ command = NULL;
}
+
}
break;
case BS11_STATE_NORMAL:
@@ -741,6 +747,7 @@ static void print_help(void)
printf("\toml-tei\t\t\tSet OML E1 TS and TEI\n");
printf("\tbport0-star\t\tSet BPORT0 line config to star\n");
printf("\tbport0-multiport\tSet BPORT0 line config to multiport\n");
+ printf("\tbport1-multiport\tSet BPORT1 line config to multiport\n");
printf("\tcreate-bport1\t\tCreate BPORT1 object\n");
printf("\tdelete-bport1\t\tDelete BPORT1 object\n");
}